org.apache.commons.workflow.util
Class MapEntry

java.lang.Object
  extended byorg.apache.commons.workflow.util.MapEntry
All Implemented Interfaces:
java.util.Map.Entry

public class MapEntry
extends java.lang.Object
implements java.util.Map.Entry

General purpose implementation of the Map.Entry interface for use in returning results from entrySet() methods on Map implementations.

Version:
$Revision: 1.4 $ $Date: 2004/02/28 03:35:55 $

Field Summary
protected  java.lang.Object key
          The key for this entry.
protected  java.lang.Object value
          The value for for this entry.
 
Constructor Summary
MapEntry(java.lang.Object key, java.lang.Object value)
          Construct a new MapEntry based on the specified parameters.
 
Method Summary
 java.lang.Object getKey()
           
 java.lang.Object getValue()
           
 void setKey(java.lang.Object key)
           
 java.lang.Object setValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

key

protected java.lang.Object key
The key for this entry.


value

protected java.lang.Object value
The value for for this entry.

Constructor Detail

MapEntry

public MapEntry(java.lang.Object key,
                java.lang.Object value)
Construct a new MapEntry based on the specified parameters.

Parameters:
key - Key for this entry
value - Value for this entry
Method Detail

getKey

public java.lang.Object getKey()
Specified by:
getKey in interface java.util.Map.Entry

setKey

public void setKey(java.lang.Object key)

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface java.util.Map.Entry

setValue

public java.lang.Object setValue(java.lang.Object value)
Specified by:
setValue in interface java.util.Map.Entry


Copyright © 2001-2005 The Apache Software Foundation. All Rights Reserved.