org.bibop.utils
Class OrderedMap.Entry
java.lang.Object
|
+--org.bibop.utils.OrderedMap.Entry
- All Implemented Interfaces:
- java.util.Map.Entry
- Enclosing class:
- OrderedMap
- static class OrderedMap.Entry
- extends java.lang.Object
- implements java.util.Map.Entry
Node in the Tree. Doubles as a means to pass key-value pairs back to
user (see Map.Entry).
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
getKey()
Returns the key. |
java.lang.Object |
getValue()
Returns the value associated with the key. |
int |
hashCode()
|
java.lang.Object |
setValue(java.lang.Object value)
Replaces the value currently associated with the key with the given
value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
key
java.lang.Object key
value
java.lang.Object value
left
OrderedMap.Entry left
right
OrderedMap.Entry right
OrderedMap.Entry
OrderedMap.Entry(java.lang.Object key,
java.lang.Object value,
OrderedMap.Entry parent)
getKey
public java.lang.Object getKey()
- Returns the key.
- Specified by:
getKey
in interface java.util.Map.Entry
- Returns:
- the key.
getValue
public java.lang.Object getValue()
- Returns the value associated with the key.
- Specified by:
getValue
in interface java.util.Map.Entry
- Returns:
- the value associated with the key.
setValue
public java.lang.Object setValue(java.lang.Object value)
- Replaces the value currently associated with the key with the given
value.
- Specified by:
setValue
in interface java.util.Map.Entry
- Returns:
- the value associated with the key before this method was
called.
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Map.Entry
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Map.Entry
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003 Bibop Research International. All Rights Reserved.