com.myjavatools.lib.foundation
Class AbstractMap2.Entry<X,Y,V>

java.lang.Object
  extended by com.myjavatools.lib.foundation.AbstractMap2.Entry<X,Y,V>
All Implemented Interfaces:
Map2.Entry<X,Y,V>
Enclosing class:
AbstractMap2<X,Y,V>

public static class AbstractMap2.Entry<X,Y,V>
extends java.lang.Object
implements Map2.Entry<X,Y,V>

An entry of a two-parameter map.


Constructor Summary
AbstractMap2.Entry(X key1, Y key2, V value)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object other)
           
 X getKey1()
          
 Y getKey2()
          
 V getValue()
          
 int hashCode()
           
 V setValue(V value)
          Replaces the value corresponding to this entry with the specified value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMap2.Entry

public AbstractMap2.Entry(X key1,
                          Y key2,
                          V value)
Constructor

Parameters:
key1 - X
key2 - Y
value - V
Method Detail

getKey1

public X getKey1()

Specified by:
getKey1 in interface Map2.Entry<X,Y,V>
Returns:
first key of the entry

getKey2

public Y getKey2()

Specified by:
getKey2 in interface Map2.Entry<X,Y,V>
Returns:
second key of the entry

getValue

public V getValue()

Specified by:
getValue in interface Map2.Entry<X,Y,V>
Returns:
entry value

setValue

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

Specified by:
setValue in interface Map2.Entry<X,Y,V>
Parameters:
value - new value to be stored in this entry.
Returns:
old value corresponding to the entry.

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object