Class TypeUtils.TypeInstantiator<T>

  • All Implemented Interfaces:
    Enclosing class:

    public static class TypeUtils.TypeInstantiator<T>
    A TypeToken that removes an ugly cast in the common cases of getting a known type.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class
    • Constructor Summary

      Modifier Constructor Description
      protected TypeInstantiator​(java.lang.Class<?> declaringClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<T> getExactType()  
      T instantiate()  
      • Methods inherited from class

        constructor, equals, getComponentType, getRawType, getSubtype, getSupertype, getType, getTypes, hashCode, isArray, isPrimitive, isSubtypeOf, isSubtypeOf, isSupertypeOf, isSupertypeOf, method, of, of, resolveType, toString, unwrap, where, where, wrap, writeReplace
      • Methods inherited from class java.lang.Object

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

      • TypeInstantiator

        protected TypeInstantiator​(java.lang.Class<?> declaringClass)
    • Method Detail

      • getExactType

        public java.lang.Class<T> getExactType()
      • instantiate

        public T instantiate()