|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object structure.Entry
public class Entry
Field Summary | |
---|---|
protected java.lang.Object |
theKey
|
protected java.lang.Object |
theValue
The mutable value. |
Constructor Summary | |
---|---|
Entry(java.lang.Object key)
Constructs a pair from a key; value is null. |
|
Entry(java.lang.Object key,
java.lang.Object value)
Constructs a pair from a key and value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Standard comparison function. |
java.lang.Object |
getKey()
Fetch key from association. |
java.lang.Object |
getValue()
Fetch value from association. |
int |
hashCode()
Standard hashcode function. |
java.lang.Object |
setValue(java.lang.Object value)
Sets the value of the key-value pair. |
java.lang.String |
toString()
Standard string representation of an association. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object theKey
protected java.lang.Object theValue
Constructor Detail |
---|
public Entry(java.lang.Object key, java.lang.Object value)
key
- A non-null object.value
- A (possibly null) object.public Entry(java.lang.Object key)
key
- A non-null key value.Method Detail |
---|
public boolean equals(java.lang.Object other)
equals
in interface java.util.Map.Entry
equals
in class java.lang.Object
other
- Another association.
public int hashCode()
hashCode
in interface java.util.Map.Entry
hashCode
in class java.lang.Object
Hashtable
public java.lang.Object getValue()
getValue
in interface java.util.Map.Entry
public java.lang.Object getKey()
getKey
in interface java.util.Map.Entry
public java.lang.Object setValue(java.lang.Object value)
setValue
in interface java.util.Map.Entry
value
- The new value.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |