weiss.util
Interface Map.Entry<KeyType,ValueType>

All Superinterfaces:
java.io.Serializable
Enclosing interface:
Map<KeyType,ValueType>

public static interface Map.Entry<KeyType,ValueType>
extends java.io.Serializable

The interface used to access the key/value pairs in a map. From a map, use entrySet().iterator to obtain a iterator over a Set of pairs. The next() method of this iterator yields objects of type Map.Entry.


Method Summary
 KeyType getKey()
          Obtains this pair's key.
 ValueType getValue()
          Obtains this pair's value.
 ValueType setValue(ValueType newValue)
          Change this pair's value.
 

Method Detail

getKey

KeyType getKey()
Obtains this pair's key.

Returns:
the key associated with this pair.

getValue

ValueType getValue()
Obtains this pair's value.

Returns:
the value associated with this pair.

setValue

ValueType setValue(ValueType newValue)
Change this pair's value.

Returns:
the old value associated with this pair.