Class TypeLiteral<T>

  • Type Parameters:
    T - wrapped type
    All Implemented Interfaces:
    java.io.Serializable

    public abstract class TypeLiteral<T>
    extends java.lang.Object
    implements java.io.Serializable
    Type literal implementation.
    Version:
    $Rev: 905874 $ $Date: 2010-02-03 04:01:05 +0100 (Wed, 03 Feb 2010) $
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Type definedType  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TypeLiteral()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      private java.lang.reflect.Type getDefinedType​(java.lang.Class<?> clazz)  
      java.lang.Class<T> getRawType()  
      java.lang.reflect.Type getType()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • definedType

        private java.lang.reflect.Type definedType
    • Constructor Detail

      • TypeLiteral

        protected TypeLiteral()
    • Method Detail

      • getType

        public final java.lang.reflect.Type getType()
      • getRawType

        public final java.lang.Class<T> getRawType()
      • getDefinedType

        private java.lang.reflect.Type getDefinedType​(java.lang.Class<?> clazz)
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object