com.threerings.presents.dobj
Class SimpleEntry<T extends Comparable<?>>
java.lang.Object
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.
|
Field Summary |
protected 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 |
_key
protected T extends Comparable<?> _key
SimpleEntry
public SimpleEntry(T key)
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