Package com.couchbase.client.java.codec
Class TypeRef<T>
java.lang.Object
com.couchbase.client.java.codec.TypeRef<T>
- Type Parameters:
T
- The type to represent
Conveys generic type information at run time.
Create an anonymous subclass parameterized with the type you want to represent. For example:
TypeRef<List<String>> listOfStrings = new TypeRef<List<String>>(){};Immutable.
- Implementation Note:
- Uses the technique described in Neal Gafter's article on Super Type Tokens.
-
Constructor Summary
-
Method Summary