anthill.util
Class MapList.Pair
java.lang.Object
|
+--anthill.util.MapList.Pair
- Enclosing class:
- MapList
- protected class MapList.Pair
- extends java.lang.Object
The Pair class is an inner class used to link objects
stored in the map into a list.
Field Summary |
protected java.lang.Object |
key
The key used for accessing the value. |
protected MapList.Pair |
next
Next pair in the linked list |
protected MapList.Pair |
prev
Previous pair in the linked list |
protected java.lang.Object |
value
The value stored by this object |
Constructor Summary |
protected |
MapList.Pair(java.lang.Object key,
java.lang.Object value)
Initializing constructor, to be inserted at the tail,
thus requires you to specify the previous tail. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
protected java.lang.Object key
- The key used for accessing the value.
value
protected java.lang.Object value
- The value stored by this object
next
protected MapList.Pair next
- Next pair in the linked list
prev
protected MapList.Pair prev
- Previous pair in the linked list
MapList.Pair
protected MapList.Pair(java.lang.Object key,
java.lang.Object value)
- Initializing constructor, to be inserted at the tail,
thus requires you to specify the previous tail.