|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TypeToken | |
---|---|
com.google.common.reflect | This package contains utilities to work with Java reflection. |
Uses of TypeToken in com.google.common.reflect |
---|
Methods in com.google.common.reflect that return TypeToken | ||
---|---|---|
TypeToken<?> |
TypeToken.getComponentType()
Returns the array component type if this type represents an array ( int[] , T[] ,
<? extends Map<String, Integer>[]> etc.), or else null is returned. |
|
TypeToken<? extends T> |
TypeToken.getSubtype(Class<?> subclass)
Returns subtype of this with subclass as the raw class. |
|
TypeToken<? super T> |
TypeToken.getSupertype(Class<? super T> superclass)
Returns the generic form of superclass . |
|
static
|
TypeToken.of(Class<T> type)
Returns an instance of type token that wraps type . |
|
static TypeToken<?> |
TypeToken.of(Type type)
Returns an instance of type token that wraps type . |
|
TypeToken<?> |
TypeToken.resolveType(Type type)
Resolves the given type against the type context represented by this type. |
|
|
TypeToken.where(TypeParameter<X> typeParam,
Class<X> typeArg)
Returns a new TypeToken where type variables represented by typeParam
are substituted by typeArg . |
|
|
TypeToken.where(TypeParameter<X> typeParam,
TypeToken<X> typeArg)
Returns a new TypeToken where type variables represented by typeParam
are substituted by typeArg . |
Methods in com.google.common.reflect that return types with arguments of type TypeToken | |
---|---|
protected Map<TypeToken<? extends B>,B> |
MutableTypeToInstanceMap.delegate()
|
protected Set<TypeToken<? super T>> |
TypeToken.TypeSet.delegate()
|
protected Map<TypeToken<? extends B>,B> |
ImmutableTypeToInstanceMap.delegate()
|
Methods in com.google.common.reflect with parameters of type TypeToken | ||
---|---|---|
|
MutableTypeToInstanceMap.getInstance(TypeToken<T> type)
|
|
|
TypeToInstanceMap.getInstance(TypeToken<T> type)
Returns the value the specified type is mapped to, or null if no
entry for this type is present. |
|
|
ImmutableTypeToInstanceMap.getInstance(TypeToken<T> type)
|
|
boolean |
TypeToken.isAssignableFrom(TypeToken<?> type)
Returns true if this type is assignable from the given type . |
|
B |
MutableTypeToInstanceMap.put(TypeToken<? extends B> key,
B value)
Not supported. |
|
|
ImmutableTypeToInstanceMap.Builder.put(TypeToken<T> key,
T value)
Associates key with value in the built map. |
|
|
MutableTypeToInstanceMap.putInstance(TypeToken<T> type,
T value)
|
|
|
TypeToInstanceMap.putInstance(TypeToken<T> type,
T value)
Maps the specified type to the specified value. |
|
|
ImmutableTypeToInstanceMap.putInstance(TypeToken<T> type,
T value)
Guaranteed to throw an exception and leave the map unmodified. |
|
|
TypeToken.where(TypeParameter<X> typeParam,
TypeToken<X> typeArg)
Returns a new TypeToken where type variables represented by typeParam
are substituted by typeArg . |
Method parameters in com.google.common.reflect with type arguments of type TypeToken | |
---|---|
void |
MutableTypeToInstanceMap.putAll(Map<? extends TypeToken<? extends B>,? extends B> map)
Not supported. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |