public static class AbstractLongKeyMap.SimpleImmutableEntry<V> extends java.lang.Object implements LongKeyMap.Entry<V>, java.io.Serializable
setValue(V) for this class simply throws an
UnsupportedOperationException, thus preventing changes being made.
This is useful when a static thread-safe view of a map is required.| Constructor and Description |
|---|
SimpleImmutableEntry(LongKeyMap.Entry<? extends V> entry) |
SimpleImmutableEntry(long key,
V value) |
| Modifier and Type | Method and Description |
|---|---|
long |
getKey()
Get the key corresponding to this entry.
|
V |
getValue()
Get the value corresponding to this entry.
|
V |
setValue(V value)
Replaces the value with the specified object (optional operation).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodepublic SimpleImmutableEntry(long key,
V value)
public SimpleImmutableEntry(LongKeyMap.Entry<? extends V> entry)
public long getKey()
LongKeyMap.EntrygetKey in interface LongKeyMap.Entry<V>public V getValue()
LongKeyMap.EntrygetValue in interface LongKeyMap.Entry<V>public V setValue(V value)
LongKeyMap.EntrysetValue in interface LongKeyMap.Entry<V>value - the new value to store