org.apache.commons.workflow.util
Class MapEntry
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
protected Object key
- The key for this entry.
value
protected Object value
- The value for for this entry.
MapEntry
public MapEntry(Object key,
Object value)
- Construct a new MapEntry based on the specified parameters.
- Parameters:
key
- Key for this entryvalue
- Value for this entry
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.