Class TypeUtils.TypeInstantiator<T>

java.lang.Object
com.google.common.reflect.TypeToken<T>
google.registry.util.TypeUtils.TypeInstantiator<T>
All Implemented Interfaces:
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:
  • 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(Class<?> declaringClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    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 Details

    • TypeInstantiator

      protected TypeInstantiator(Class<?> declaringClass)
  • Method Details

    • getExactType

      public Class<T> getExactType()
    • instantiate

      public T instantiate()