Class SerializerCache.TypeKey

  • Enclosing class:
    SerializerCache

    public static final class SerializerCache.TypeKey
    extends 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 Detail

      • _hashCode

        protected int _hashCode
      • _class

        protected Class<?> _class
      • _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​(Class<?> key,
                       boolean typed)
      • TypeKey

        public TypeKey​(JavaType key,
                       boolean typed)
    • Method Detail

      • resetTyped

        public void resetTyped​(Class<?> cls)
      • resetUntyped

        public void resetUntyped​(Class<?> cls)
      • resetTyped

        public void resetTyped​(JavaType type)
      • resetUntyped

        public void resetUntyped​(JavaType type)
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object