public abstract class

AbstractMapEntryDecorator

extends Object
implements Map.Entry<K, V> KeyValue
java.lang.Object
   ↳ org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator
Known Direct Subclasses

Class Overview

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

Summary

Fields
protected final Entry entry The Map.Entry to decorate
Public Constructors
AbstractMapEntryDecorator(Entry entry)
Constructor that wraps (not copies).
Public Methods
boolean equals(Object object)
Object getKey()
Gets the key from the pair.
Object getValue()
Gets the value from the pair.
int hashCode()
Object setValue(Object object)
String toString()
Protected Methods
Entry getMapEntry()
Gets the map being decorated.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Map.Entry
From interface org.apache.commons.collections.KeyValue

Fields

protected final Entry entry

The Map.Entry to decorate

Public Constructors

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

Public Methods

public boolean equals (Object object)

public Object getKey ()

Gets the key from the pair.

Returns
  • the key

public Object getValue ()

Gets the value from the pair.

Returns
  • the value

public int hashCode ()

public Object setValue (Object object)

public String toString ()

Protected Methods

protected Entry getMapEntry ()

Gets the map being decorated.

Returns
  • the decorated map