net.sf.webmancer.util.immutable
Class ImmutableMapEntry<K,V>

java.lang.Object
  extended by net.sf.webmancer.util.immutable.ImmutableMapEntry<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
java.util.Map.Entry<K,V>

public final class ImmutableMapEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>

Author:
Michal Burda

Constructor Summary
ImmutableMapEntry(java.util.Map.Entry<? extends K,? extends V> mapEntry)
           
 
Method Summary
 boolean equals(java.lang.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

ImmutableMapEntry

public ImmutableMapEntry(java.util.Map.Entry<? extends K,? extends V> mapEntry)
Parameters:
mapEntry -
Method Detail

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map.Entry<K,V>
Overrides:
equals in class java.lang.Object
See Also:
Map.Entry.equals(java.lang.Object)

getKey

public K getKey()
Specified by:
getKey in interface java.util.Map.Entry<K,V>
See Also:
Map.Entry.getKey()

getValue

public V getValue()
Specified by:
getValue in interface java.util.Map.Entry<K,V>
See Also:
Map.Entry.getValue()

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map.Entry<K,V>
Overrides:
hashCode in class java.lang.Object
See Also:
Map.Entry.hashCode()

setValue

public V setValue(V value)
Specified by:
setValue in interface java.util.Map.Entry<K,V>
See Also:
java.util.Map.Entry#setValue(V)


Copyright © 2006-2007. All Rights Reserved.