com.threerings.presents.dobj
Class SimpleEntry<T extends Comparable<?>>

java.lang.Object
  extended by com.threerings.presents.dobj.SimpleEntry<T>
All Implemented Interfaces:
Streamable, DSet.Entry

public class SimpleEntry<T extends Comparable<?>>
extends Object
implements DSet.Entry

A quick and easy DSet.Entry that holds some sort of Comparable. Remember: this type must also be Streamable.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  T _key
           
 
Constructor Summary
SimpleEntry(T key)
           
 
Method Summary
 T getKey()
          Each entry provide an associated key which is used to determine its uniqueness in the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_key

protected T extends Comparable<?> _key
Constructor Detail

SimpleEntry

public SimpleEntry(T key)
Method Detail

getKey

public T getKey()
Description copied from interface: DSet.Entry
Each entry provide an associated key which is used to determine its uniqueness in the set. See the DSet class documentation for further information.

Specified by:
getKey in interface DSet.Entry