public class TypeOf<T> extends Object
This class is intended to be subclassed and allows for type information to be retained at runtime. When subclassing, the generic type parameter should be specified.
Example usage:
TypeOf<List<String>> typeToken = new TypeOf<List<String>>(){};
Type type = typeToken.type();
| Constructor and Description |
|---|
TypeOf() |
Copyright © 2024. All rights reserved.