public abstract class AbstractMapEntryDecorator extends Object implements Map.Entry, KeyValue
Map.Entry.| Modifier and Type | Field and Description |
|---|---|
protected Map.Entry |
entry
The
Map.Entry to decorate |
| Constructor and Description |
|---|
AbstractMapEntryDecorator(Map.Entry entry)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Object |
getKey()
Gets the key from the pair.
|
protected Map.Entry |
getMapEntry()
Gets the map being decorated.
|
Object |
getValue()
Gets the value from the pair.
|
int |
hashCode() |
Object |
setValue(Object object) |
String |
toString() |
protected final Map.Entry entry
Map.Entry to decoratepublic AbstractMapEntryDecorator(Map.Entry entry)
entry - the Map.Entry to decorate, must not be nullIllegalArgumentException - if the collection is nullprotected Map.Entry getMapEntry()
public Object getKey()
KeyValuepublic Object getValue()
KeyValuepublic boolean equals(Object object)
public int hashCode()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.