Java Code Examples for com.fasterxml.jackson.databind.JavaType#hashCode()
The following examples show how to use
com.fasterxml.jackson.databind.JavaType#hashCode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ArrayType.java From lams with GNU General Public License v2.0 | 5 votes |
protected ArrayType(JavaType componentType, TypeBindings bindings, Object emptyInstance, Object valueHandler, Object typeHandler, boolean asStatic) { // No super-class, interfaces, for now super(emptyInstance.getClass(), bindings, null, null, componentType.hashCode(), valueHandler, typeHandler, asStatic); _componentType = componentType; _emptyArray = emptyInstance; }
Example 2
Source File: CollectionLikeType.java From lams with GNU General Public License v2.0 | 5 votes |
protected CollectionLikeType(Class<?> collT, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType elemT, Object valueHandler, Object typeHandler, boolean asStatic) { super(collT, bindings, superClass, superInts, elemT.hashCode(), valueHandler, typeHandler, asStatic); _elementType = elemT; }
Example 3
Source File: ReferenceType.java From lams with GNU General Public License v2.0 | 5 votes |
protected ReferenceType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType refType, JavaType anchorType, Object valueHandler, Object typeHandler, boolean asStatic) { super(cls, bindings, superClass, superInts, refType.hashCode(), valueHandler, typeHandler, asStatic); _referencedType = refType; _anchorType = (anchorType == null) ? this : anchorType; }
Example 4
Source File: MapLikeType.java From lams with GNU General Public License v2.0 | 5 votes |
protected MapLikeType(Class<?> mapType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT, Object valueHandler, Object typeHandler, boolean asStatic) { super(mapType, bindings, superClass, superInts, keyT.hashCode() ^ valueT.hashCode(), valueHandler, typeHandler, asStatic); _keyType = keyT; _valueType = valueT; }
Example 5
Source File: TypeKey.java From lams with GNU General Public License v2.0 | 4 votes |
public final static int untypedHash(JavaType type) { return type.hashCode() - 1; }
Example 6
Source File: TypeKey.java From lams with GNU General Public License v2.0 | 4 votes |
public final static int typedHash(JavaType type) { return type.hashCode() - 2; }