public class Types
extends java.lang.Object
TypeToken| Constructor and Description |
|---|
Types() |
| Modifier and Type | Method and Description |
|---|---|
static <T> com.google.common.reflect.TypeToken<T> |
argumentOf(java.lang.Class<?> contextClass)
Constructs a new
TypeToken for an actual parameter type, which is
inferred from a given context class. |
public static <T> com.google.common.reflect.TypeToken<T> argumentOf(java.lang.Class<?> contextClass)
TypeToken for an actual parameter type, which is
inferred from a given context class.T - The parameter type to use.contextClass - A class that can be used to infer the actual parameter type of
the parameterized type.Copyright (c) 2014 itemis AG and others. All rights reserved.