Class TypeRef<T>

  extended by<T>
All Implemented Interfaces:

public abstract class TypeRef<T>
extends Object
implements Comparable<TypeRef<T>>

This class is used to pass full generics type information. It is based on ideas from,

To use this class create an anonymous subclass, e.g. to deserialise to generic type List<User>:

  TypeRef ref = new TypeRef<List<User>>() { };

Constructor Summary
protected TypeRef()
Method Summary
 int compareTo(TypeRef<T> o)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


protected TypeRef()
Method Detail


public int compareTo(TypeRef<T> o)
Specified by:
compareTo in interface Comparable<TypeRef<T>>

Copyright © 2002-2012 Atlassian. All Rights Reserved.