@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);
}
Copyright © 2010 - 2020 Adobe. All Rights Reserved