org.modeshape.common.collection
Class ImmutableMapEntry<K,V>
java.lang.Object
org.modeshape.common.collection.ImmutableMapEntry<K,V>
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
- Map.Entry<K,V>
@Immutable
public class ImmutableMapEntry<K,V>
- extends Object
- implements Map.Entry<K,V>
An immutable Map.Entry
implementation.
ImmutableMapEntry
public ImmutableMapEntry(K key,
V value)
ImmutableMapEntry
public ImmutableMapEntry(Map.Entry<K,V> entry)
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 newValue)
- 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 obj)
- Specified by:
equals
in interface Map.Entry<K,V>
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.