Package org.spockframework.gentyref
Class TypeToken<T>
java.lang.Object
org.spockframework.gentyref.TypeToken<T>
- Type Parameters:
T
- The type represented by this TypeToken.
Wrapper around
Type
.
You can use this to create instances of Type for a type known at compile
time.
For example, to get the Type that represents List<String>:
Type listOfString = new TypeToken<List<String>>(){}.getType();
- Author:
- Wouter Coekaerts <wouter@coekaerts.be>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TypeToken
protected TypeToken()Constructs a type token.
-
-
Method Details