public static class AbstractMapPro.SimpleImmutableEntry<K,V> extends Object implements Map.Entry<K,V>, Serializable
Constructor and Description |
---|
AbstractMapPro.SimpleImmutableEntry(K key,
V value)
Creates an entry representing a mapping from the specified
key to the specified value.
|
AbstractMapPro.SimpleImmutableEntry(Map.Entry<? extends K,? extends V> entry)
Creates an entry representing the same mapping as the
specified entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
K |
getKey()
Returns the key corresponding to this entry.
|
V |
getValue()
Returns the value corresponding to this entry.
|
int |
hashCode() |
V |
setValue(V value)
Replaces the value corresponding to this entry with the specified
value (optional operation).
|
String |
toString()
Returns a String representation of this map entry.
|
public AbstractMapPro.SimpleImmutableEntry(K key, V value)
key
- the key represented by this entryvalue
- the value represented by this entrypublic AbstractMapPro.SimpleImmutableEntry(Map.Entry<? extends K,? extends V> entry)
entry
- the entry to copypublic V setValue(V value)
setValue
in interface Map.Entry<K,V>
value
- new value to be stored in this entryUnsupportedOperationException
- alwayspublic int hashCode()
Copyright © 2015 Lucee