java.util
Interface Map.Entry

Enclosing interface:
Map

public static interface Map.Entry

Map.Entry is a key/value mapping which is contained in a Map.


Method Summary
 boolean equals(java.lang.Object object)
          Compares the specified object to this Map.Entry and answer if they are equal.
 java.lang.Object getKey()
          Gets the key.
 java.lang.Object getValue()
          Gets the value.
 int hashCode()
          Answers an integer hash code for the receiver.
 java.lang.Object setValue(java.lang.Object object)
          Sets the value.
 

Method Detail

equals

public boolean equals(java.lang.Object object)
Compares the specified object to this Map.Entry and answer if they are equal. The object must be an instance of Map.Entry and have the same key and value.

Parameters:
object - the object to compare with this object
Returns:
true if the specified object is equal to this Map.Entry, false otherwise
See Also:
hashCode()

getKey

public java.lang.Object getKey()
Gets the key.

Returns:
the key

getValue

public java.lang.Object getValue()
Gets the value.

Returns:
the value

hashCode

public int hashCode()
Answers an integer hash code for the receiver. Objects which are equal answer the same value for this method.

Returns:
the receiver's hash
See Also:
equals(java.lang.Object)

setValue

public java.lang.Object setValue(java.lang.Object object)
Sets the value.

Parameters:
object - the new value
Returns:
object