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.Object
Key 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<?>
_class
protected int
_hashCode
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"protected JavaType
_type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
void
resetTyped(java.lang.Class<?> cls)
void
resetTyped(JavaType type)
void
resetUntyped(java.lang.Class<?> cls)
void
resetUntyped(JavaType type)
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-