Class TypeRef<T>

  • Type Parameters:
    T - The type to represent

    public abstract class TypeRef<T>
    extends Object
    Conveys generic type information at run time.

    Create an anonymous subclass parameterized with the type you want to represent. For example:

     TypeRef<List<String>> listOfStrings = new TypeRef<List<String>>(){};
     
    Immutable.
    • Constructor Detail

      • TypeRef

        protected TypeRef()