## Uses of Class
com.google.common.reflect.TypeToken

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

`<T> TypeToken<T>`

`

`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.

`

`<X> TypeToken<T>`

`

`TypeToken.where(TypeParameter<X> typeParam, Class<X> typeArg)`
Returns a new `TypeToken` where type variables represented by `typeParam` are substituted by `typeArg`.

`

`<X> TypeToken<T>`

`

`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

`

`<T extends B> T`

`

`MutableTypeToInstanceMap.getInstance(TypeToken<T> type)`

`

`<T extends B> T`

`

`TypeToInstanceMap.getInstance(TypeToken<T> type)`
Returns the value the specified type is mapped to, or `null` if no entry for this type is present.

`

`<T extends B> T`

`

`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.

`

`<T extends B> ImmutableTypeToInstanceMap.Builder<B>`

`

`ImmutableTypeToInstanceMap.Builder.put(TypeToken<T> key, T value)`
Associates `key` with `value` in the built map.

`

`<T extends B> T`

`

`MutableTypeToInstanceMap.putInstance(TypeToken<T> type, T value)`

`

`<T extends B> T`

`

`TypeToInstanceMap.putInstance(TypeToken<T> type, T value)`
Maps the specified type to the specified value.

`

`<T extends B> T`

`

`ImmutableTypeToInstanceMap.putInstance(TypeToken<T> type, T value)`
Guaranteed to throw an exception and leave the map unmodified.

`

`<X> TypeToken<T>`

`

`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.

Copyright © 2010-2012. All Rights Reserved.