@Beta public abstract class TypeParameter<T> extends Object
TypeToken.where(com.google.common.reflect.TypeParameter<X>, com.google.common.reflect.TypeToken<X>)
. For example:
static <T> TypeToken<List<T>> listOf(Class<T> elementType) {
return new TypeToken<List<T>>() {}
.where(new TypeParameter<T>() {}, elementType);
}
Modifier | Constructor and Description |
---|---|
protected |
TypeParameter() |
protected TypeParameter()
Copyright © 2010–2017. All rights reserved.