Class CsvMapper.ViewKey

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    CsvMapper

    public static final class CsvMapper.ViewKey
    extends java.lang.Object
    implements java.io.Serializable
    Simple class in order to create a map key based on JavaType and a given view. Used for caching associated schemas in _untypedSchemas and _typedSchemas.
    Since:
    2.14
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int _hashCode  
      private com.fasterxml.jackson.databind.JavaType _pojoType  
      private java.lang.Class<?> _view  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewKey​(com.fasterxml.jackson.databind.JavaType pojoType, java.lang.Class<?> view)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _pojoType

        private final com.fasterxml.jackson.databind.JavaType _pojoType
      • _view

        private final java.lang.Class<?> _view
      • _hashCode

        private final int _hashCode
    • Constructor Detail

      • ViewKey

        public ViewKey​(com.fasterxml.jackson.databind.JavaType pojoType,
                       java.lang.Class<?> view)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object