Class TypeRef<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    java.lang.Comparable<TypeRef<T>>

    public abstract class TypeRef<T>
    extends java.lang.Object
    implements java.lang.Comparable<TypeRef<T>>
    Used to specify generic type information in ReadContext TypeRef ref = new TypeRef>() { };
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.reflect.Type type  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TypeRef()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(TypeRef<T> o)
      The only reason we define this method (and require implementation of Comparable) is to prevent constructing a reference without type information.
      java.lang.reflect.Type getType()  
      • Methods inherited from class java.lang.Object

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

      • type

        protected final java.lang.reflect.Type type
    • Constructor Detail

      • TypeRef

        protected TypeRef()
    • Method Detail

      • getType

        public java.lang.reflect.Type getType()
      • compareTo

        public int compareTo​(TypeRef<T> o)
        The only reason we define this method (and require implementation of Comparable) is to prevent constructing a reference without type information.
        Specified by:
        compareTo in interface java.lang.Comparable<T>