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