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>
- See Also:
Map.Entry.getKey()
getValue
public V getValue()
-
- Specified by:
getValue
in interface Map.Entry<K,V>
- See Also:
Map.Entry.getValue()
setValue
public V setValue(V newValue)
-
- Specified by:
setValue
in interface Map.Entry<K,V>
- See Also:
Map.Entry.setValue(java.lang.Object)
equals
public boolean equals(Object obj)
-
- Specified by:
equals
in interface Map.Entry<K,V>
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
toString
public String toString()
-
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.