Class TypeUtils.TypeInstantiator<T>

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    TypeUtils

    public static class TypeUtils.TypeInstantiator<T>
    extends com.google.common.reflect.TypeToken<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 com.google.common.reflect.TypeToken

        com.google.common.reflect.TypeToken.TypeSet
    • Constructor Summary

      Constructors 
      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 com.google.common.reflect.TypeToken

        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()