org.apache.commons.collections.keyvalue
Class AbstractMapEntryDecorator
java.lang.Object
org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator
- Map.Entry, KeyValue
public abstract class AbstractMapEntryDecorator
extends java.lang.Object
Provides a base decorator that allows additional functionality to be added
to a Map Entry.
$Revision: 1.4 $ $Date: 2004/02/18 01:00:08 $protected Map.Entry | entry - The
Map.Entry to decorate
|
entry
protected final Map.Entry entry
The Map.Entry
to decorate
AbstractMapEntryDecorator
public AbstractMapEntryDecorator(Map.Entry entry)
Constructor that wraps (not copies).
entry
- the Map.Entry
to decorate, must not be null
equals
public boolean equals(Object object)
getKey
public Object getKey()
Gets the key from the pair.
- getKey in interface KeyValue
getMapEntry
protected Map.Entry getMapEntry()
Gets the map being decorated.
getValue
public Object getValue()
Gets the value from the pair.
- getValue in interface KeyValue
hashCode
public int hashCode()
setValue
public Object setValue(Object object)
toString
public String toString()
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.