org.web3d.vrtp.dabp
Class OrderedMap.Entry
java.lang.Object
|
+--org.web3d.vrtp.dabp.OrderedMap.Entry
- All Implemented Interfaces:
- java.util.Map.Entry
- Enclosing class:
- OrderedMap
- class OrderedMap.Entry
- extends java.lang.Object
- implements java.util.Map.Entry
Another inner class, this one for Map.Entry. this is a key-value
class. This just puts the key and value into one object, which makes
things easier to handle.
Field Summary |
(package private) java.lang.Object |
key
|
(package private) java.lang.Object |
value
|
Constructor Summary |
(package private) |
OrderedMap.Entry(java.lang.Object key,
java.lang.Object value)
Make a new cell with given key, value |
Method Summary |
boolean |
equals(java.lang.Object o)
Comparable interface; used for testing equlity of map entries |
java.lang.Object |
getKey()
Returns the key. |
java.lang.Object |
getValue()
Returns the value associated with the key. |
int |
hashCode()
Generate the hashcode for an Entry instance, which is just the
hashcode of the two objects, combined by a bitwise XOR. |
java.lang.Object |
setValue(java.lang.Object value)
Replaces the value currently associated with the key with the given
value. |
java.lang.String |
toString()
Standard java method, print out text representation of object |
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
OrderedMap.Entry
OrderedMap.Entry(java.lang.Object key,
java.lang.Object value)
- Make a new cell with given key, value
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)
- Comparable interface; used for testing equlity of map entries
- Specified by:
equals
in interface java.util.Map.Entry
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Generate the hashcode for an Entry instance, which is just the
hashcode of the two objects, combined by a bitwise XOR.
- Specified by:
hashCode
in interface java.util.Map.Entry
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Standard java method, print out text representation of object
- Overrides:
toString
in class java.lang.Object