com.myjavatools.lib.foundation
Interface Map2.Entry<X,Y,V>

All Known Implementing Classes:
AbstractMap2.Entry
Enclosing interface:
Map2<X,Y,V>

public static interface Map2.Entry<X,Y,V>

A map entry (key1-key2-value pair). The Map.entrySet method returns a collection view of the map, whose elements are of this class. You can use an iterator or a loop to scan through the entries.

See Also:
Map2.entrySet()

Method Summary
 X getKey1()
           
 Y getKey2()
           
 V getValue()
           
 V setValue(V value)
          Replaces the value corresponding to this entry with the specified value
 

Method Detail

getKey1

X getKey1()
Returns:
first key of the entry

getKey2

Y getKey2()
Returns:
second key of the entry

getValue

V getValue()
Returns:
entry value

setValue

V setValue(V value)
Replaces the value corresponding to this entry with the specified value

Parameters:
value - new value to be stored in this entry.
Returns:
old value corresponding to the entry.