public abstract class TypeRef<T>
extends java.lang.Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
TypeRef()
Constructs a new TypeRef instance, capturing the generic type information of the
subclass.
|
protected TypeRef()
TypeRef<List<Foo>> ref = new TypeRef<>(){};
java.lang.IllegalStateException - if TypeRef is not subclassed with actual type
information