org.apache.commons.collections.keyvalue

Class AbstractMapEntryDecorator

public abstract class AbstractMapEntryDecorator extends Object implements Entry, KeyValue

Provides a base decorator that allows additional functionality to be added to a java.util.Map.Entry Map.Entry.

Since: Commons Collections 3.0

Version: $Revision: 405927 $ $Date: 2006-05-12 23:57:03 +0100 (Fri, 12 May 2006) $

Author: Stephen Colebourne

Field Summary
protected Entryentry
The Map.Entry to decorate
Constructor Summary
AbstractMapEntryDecorator(Entry entry)
Constructor that wraps (not copies).
Method Summary
booleanequals(Object object)
ObjectgetKey()
protected EntrygetMapEntry()
Gets the map being decorated.
ObjectgetValue()
inthashCode()
ObjectsetValue(Object object)
StringtoString()

Field Detail

entry

protected final Entry entry
The Map.Entry to decorate

Constructor Detail

AbstractMapEntryDecorator

public AbstractMapEntryDecorator(Entry entry)
Constructor that wraps (not copies).

Parameters: entry the Map.Entry to decorate, must not be null

Throws: IllegalArgumentException if the collection is null

Method Detail

equals

public boolean equals(Object object)

getKey

public Object getKey()

getMapEntry

protected Entry getMapEntry()
Gets the map being decorated.

Returns: the decorated map

getValue

public Object getValue()

hashCode

public int hashCode()

setValue

public Object setValue(Object object)

toString

public String toString()
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.