|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.guice.bean.reflect.TypeParameters
public final class TypeParameters
Utility methods for dealing with generic type parameters.
| Method Summary | |
|---|---|
static com.google.inject.TypeLiteral<?>[] |
get(com.google.inject.TypeLiteral<?> genericType)
Get all type parameters from a generic type, for example [Foo,Bar] from Map<Foo,Bar>. |
static com.google.inject.TypeLiteral<?> |
get(com.google.inject.TypeLiteral<?> genericType,
int index)
Get an indexed type parameter from a generic type, for example Bar from Map<Foo,Bar>. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static com.google.inject.TypeLiteral<?>[] get(com.google.inject.TypeLiteral<?> genericType)
[Foo,Bar] from Map<Foo,Bar>.
genericType - The generic type
public static com.google.inject.TypeLiteral<?> get(com.google.inject.TypeLiteral<?> genericType,
int index)
Bar from Map<Foo,Bar>.
genericType - The generic typeindex - The parameter index
TypeLiteral<Object> if the given type is a raw class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||