org.dishevelled.observable
Class AbstractMapEntryDecorator<K,V>

java.lang.Object
  extended by org.dishevelled.observable.AbstractMapEntryDecorator<K,V>
Type Parameters:
K - map entry key type
V - map entry value type
All Implemented Interfaces:
Map.Entry<K,V>
Direct Known Subclasses:
AbstractObservableMap.ObservableEntrySet.ObservableMapEntry

abstract class AbstractMapEntryDecorator<K,V>
extends Object
implements Map.Entry<K,V>

Abstract map entry decorator.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Constructor Summary
protected AbstractMapEntryDecorator(Map.Entry<K,V> entry)
          Create a new abstract map entyr that decorates the specified map entry.
 
Method Summary
 boolean equals(Object o)
          
 K getKey()
          
 V getValue()
          
 int hashCode()
          
 V setValue(V value)
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMapEntryDecorator

protected AbstractMapEntryDecorator(Map.Entry<K,V> entry)
Create a new abstract map entyr that decorates the specified map entry.

Parameters:
entry - map entry to decorate, must not be null
Method Detail

getKey

public K getKey()

Specified by:
getKey in interface Map.Entry<K,V>

getValue

public V getValue()

Specified by:
getValue in interface Map.Entry<K,V>

setValue

public V setValue(V value)

Specified by:
setValue in interface Map.Entry<K,V>

hashCode

public int hashCode()

Specified by:
hashCode in interface Map.Entry<K,V>
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)

Specified by:
equals in interface Map.Entry<K,V>
Overrides:
equals in class Object


Copyright (c) 2003-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).