edu.jas.util
Class MapEntry<K,V>

java.lang.Object
  extended by edu.jas.util.MapEntry<K,V>
All Implemented Interfaces:
java.util.Map.Entry<K,V>

public class MapEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>

MapEntry helper class implements Map.Entry. Required until JDK 1.6 becomes every where available.

Author:
Heinz Kredel.
See Also:
in JDK 1.6.

Constructor Summary
MapEntry(K k, V v)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object b)
          Comparison with any other object.
 K getKey()
          Get the key.
 V getValue()
          Get the value.
 int hashCode()
          Hash code for this MapEntry.
 V setValue(V value)
          Set the value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapEntry

public MapEntry(K k,
                V v)
Constructor.

Method Detail

getKey

public K getKey()
Get the key.

Specified by:
getKey in interface java.util.Map.Entry<K,V>
See Also:
Map.Entry.getKey()

getValue

public V getValue()
Get the value.

Specified by:
getValue in interface java.util.Map.Entry<K,V>
See Also:
Map.Entry.getValue()

setValue

public V setValue(V value)
Set the value. Is not implemented.

Specified by:
setValue in interface java.util.Map.Entry<K,V>
See Also:
Map.Entry

equals

public boolean equals(java.lang.Object b)
Comparison with any other object.

Specified by:
equals in interface java.util.Map.Entry<K,V>
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Hash code for this MapEntry.

Specified by:
hashCode in interface java.util.Map.Entry<K,V>
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()