Class TypeReference<T>

  • Type Parameters:
    T - a generic type that must be provided

    public abstract class TypeReference<T>
    extends java.lang.Object
    Helper class that can be subclassed to provide full generic type information.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TypeReference()
      Constructs a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Type getType()
      Gets the referenced type.
      • Methods inherited from class java.lang.Object

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

      • TypeReference

        protected TypeReference()
        Constructs a new instance.
    • Method Detail

      • getType

        public java.lang.reflect.Type getType()
        Gets the referenced type.
        Returns:
        the reference type, never null