org.apache.commons.workflow.util
Class MapEntry

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

public class MapEntry
extends Object
implements Map.Entry

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

Version:
$Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $
Author:
Craig R. McClanahan

Field Summary
protected  Object key
          The key for this entry.
protected  Object value
          The value for for this entry.
 
Constructor Summary
MapEntry(Object key, Object value)
          Construct a new MapEntry based on the specified parameters.
 
Method Summary
 Object getKey()
           
 Object getValue()
           
 void setKey(Object key)
           
 Object setValue(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 Object key
The key for this entry.


value

protected Object value
The value for for this entry.

Constructor Detail

MapEntry

public MapEntry(Object key,
                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 Object getKey()
Specified by:
getKey in interface Map.Entry

setKey

public void setKey(Object key)

getValue

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

setValue

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


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