⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.keyvalue

Class AbstractMapEntryDecorator

java.lang.Object
|
+--org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator

All Implemented Interfaces:
Map.Entry, KeyValue

Known Direct Subclasses:
AbstractDualBidiMap.MapEntry


public abstract class AbstractMapEntryDecorator
extends java.lang.Object
implements Map.Entry, KeyValue

Provides a base decorator that allows additional functionality to be added to a Map Entry.
Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Field Summary

Map.Entry

entry

The Map.Entry to decorate

Constructor Summary

AbstractMapEntryDecorator(Map.Entry entry)

Constructor that wraps (not copies).

Method Summary

boolean

equals(Object object)

Object

getKey()

Map.Entry

getMapEntry()

Gets the map being decorated.

Object

getValue()

int

hashCode()

Object

setValue(Object object)

String

toString()

Field Details

entry

protected final Entry entry

The Map.Entry to decorate

Constructor Details

AbstractMapEntryDecorator

public AbstractMapEntryDecorator(Map.Entry entry)

Constructor that wraps (not copies).

Parameters:
entry - the Map.Entry to decorate, must not be null
Throws:
- if the collection is null

Method Details

equals

public boolean equals(Object object)

Parameters:
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)

Parameters:
object

toString

public String toString()