Comparable
(any such generic interface would do, as long as it forces a method with generic type to be implemented). to ensure that a Type argument is indeed given. Usage is by sub-classing: here is one way to instantiate reference to generic type List<Integer>
:
TypeReference ref = new TypeReference<List<Integer>>() { };which can be passed to methods that accept TypeReference.
|
|
|
|
|
|
|
|
|
|