org.pf.util
Class MapEntry

java.lang.Object
  extended by org.pf.util.Association
      extended by org.pf.util.MapEntry
All Implemented Interfaces:
java.io.Serializable, java.util.Map.Entry

public class MapEntry
extends Association
implements java.util.Map.Entry

This is a simple implementation of the java.util.Map.Entry interface.

Version:
1.0
Author:
Manfred Duchrow
See Also:
Serialized Form

Constructor Summary
MapEntry(java.lang.Object aKey, java.lang.Object aValue)
          Initialize the new instance with default values.
 
Method Summary
 java.lang.Object getKey()
          Returns the key corresponding to this entry.
 java.lang.Object getValue()
          Returns the value corresponding to this entry.
 java.lang.Object setValue(java.lang.Object obj)
          Replaces the value corresponding to this entry with the specified value.
 
Methods inherited from class org.pf.util.Association
copyAssociation, equals, hashCode, key, key, toString, value, value
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

MapEntry

public MapEntry(java.lang.Object aKey,
                java.lang.Object aValue)
Initialize the new instance with default values.

Method Detail

getKey

public java.lang.Object getKey()
Returns the key corresponding to this entry.

Specified by:
getKey in interface java.util.Map.Entry
Overrides:
getKey in class Association
See Also:
Map.Entry.getKey()

getValue

public java.lang.Object getValue()
Returns the value corresponding to this entry.

Specified by:
getValue in interface java.util.Map.Entry
Overrides:
getValue in class Association
See Also:
Map.Entry.getValue()

setValue

public java.lang.Object setValue(java.lang.Object obj)
Replaces the value corresponding to this entry with the specified value.

Specified by:
setValue in interface java.util.Map.Entry
Overrides:
setValue in class Association
See Also:
Map.Entry.setValue(java.lang.Object)