Class SerializerCache.TypeKey
- java.lang.Object
-
- org.codehaus.jackson.map.ser.impl.SerializerCache.TypeKey
-
- Enclosing class:
- SerializerCache
public static final class SerializerCache.TypeKey extends java.lang.ObjectKey that offers two "modes"; one with raw class, as used for cases were raw class type is available (for example, when using runtime type); and one with full generics-including.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<?>_classprotected int_hashCodeprotected boolean_isTypedIndicator of whether serializer stored has a type serializer wrapper around it or not; if not, it is "untyped" serializer; if it has, it is "typed"protected JavaType_type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()voidresetTyped(java.lang.Class<?> cls)voidresetTyped(JavaType type)voidresetUntyped(java.lang.Class<?> cls)voidresetUntyped(JavaType type)java.lang.StringtoString()
-
-
-
Field Detail
-
_hashCode
protected int _hashCode
-
_class
protected java.lang.Class<?> _class
-
_type
protected JavaType _type
-
_isTyped
protected boolean _isTyped
Indicator of whether serializer stored has a type serializer wrapper around it or not; if not, it is "untyped" serializer; if it has, it is "typed"
-
-
Constructor Detail
-
TypeKey
public TypeKey(java.lang.Class<?> key, boolean typed)
-
TypeKey
public TypeKey(JavaType key, boolean typed)
-
-
Method Detail
-
resetTyped
public void resetTyped(java.lang.Class<?> cls)
-
resetUntyped
public void resetUntyped(java.lang.Class<?> cls)
-
resetTyped
public void resetTyped(JavaType type)
-
resetUntyped
public void resetUntyped(JavaType type)
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-