|
|||||||||
| Home >> All >> org >> apache >> axis >> [ collections overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.axis.collections
Class SequencedHashMap.Entry

java.lang.Objectorg.apache.axis.collections.SequencedHashMap.Entry
- All Implemented Interfaces:
- java.util.Map.Entry
- Enclosing class:
- SequencedHashMap
- private static class SequencedHashMap.Entry
- extends java.lang.Object
- implements java.util.Map.Entry
- extends java.lang.Object
java.util.Map.Entry that doubles as a node in the linked list of sequenced mappings.
| Field Summary | |
private java.lang.Object |
key
|
(package private) SequencedHashMap.Entry |
next
|
(package private) SequencedHashMap.Entry |
prev
|
private java.lang.Object |
value
|
| Constructor Summary | |
SequencedHashMap.Entry(java.lang.Object key,
java.lang.Object value)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares the specified object with this entry. |
java.lang.Object |
getKey()
Get the key corresponding to this entry. |
java.lang.Object |
getValue()
Get the value corresponding to this entry. |
int |
hashCode()
Returns the hash code of the entry. |
java.lang.Object |
setValue(java.lang.Object value)
Replaces the value with the specified object (optional operation). |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
key
private final java.lang.Object key
value
private java.lang.Object value
next
SequencedHashMap.Entry next
prev
SequencedHashMap.Entry prev
| Constructor Detail |
SequencedHashMap.Entry
public SequencedHashMap.Entry(java.lang.Object key, java.lang.Object value)
| Method Detail |
getKey
public java.lang.Object getKey()
- Description copied from interface:
java.util.Map.Entry - Get the key corresponding to this entry.
- Specified by:
getKeyin interfacejava.util.Map.Entry
getValue
public java.lang.Object getValue()
- Description copied from interface:
java.util.Map.Entry - Get the value corresponding to this entry. If you already called
Iterator.remove(), this is undefined.
- Specified by:
getValuein interfacejava.util.Map.Entry
setValue
public java.lang.Object setValue(java.lang.Object value)
- Description copied from interface:
java.util.Map.Entry - Replaces the value with the specified object (optional operation).
This writes through to the map, and is undefined if you already
called Iterator.remove().
- Specified by:
setValuein interfacejava.util.Map.Entry
hashCode
public int hashCode()
- Description copied from interface:
java.util.Map.Entry - Returns the hash code of the entry. This is defined as the
exclusive-or of the hashcodes of the key and value (using 0 for
null). In other words, this must be:(getKey() == null ? 0 : getKey().hashCode()) ^ (getValue() == null ? 0 : getValue().hashCode())
- Specified by:
hashCodein interfacejava.util.Map.Entry
equals
public boolean equals(java.lang.Object obj)
- Description copied from interface:
java.util.Map.Entry - Compares the specified object with this entry. Returns true only if
the object is a mapping of identical key and value. In other words,
this must be:
(o instanceof Map.Entry) && (getKey() == null ? ((Map.Entry) o).getKey() == null : getKey().equals(((Map.Entry) o).getKey())) && (getValue() == null ? ((Map.Entry) o).getValue() == null : getValue().equals(((Map.Entry) o).getValue()))- Specified by:
equalsin interfacejava.util.Map.Entry
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> apache >> axis >> [ collections overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.axis.collections.SequencedHashMap.Entry