K - the key typeV - the value type@Immutable public final class ImmutableEntry<K,V> extends AbstractMap.SimpleImmutableEntry<K,V> implements Immutable
| Constructor and Description |
|---|
ImmutableEntry(K key,
V value) |
ImmutableEntry(Map.Entry<? extends K,? extends V> entry) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> ImmutableEntry<K,V> |
from(Map.Entry<? extends K,? extends V> entry) |
static <K,V> ImmutableEntry<K,V> |
of(K key,
V value) |
V |
setValue(V v)
Deprecated.
|
equals, getKey, getValue, hashCode, toStringcomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic static <K,V> ImmutableEntry<K,V> of(K key, V value)
K - the key typeV - the value typekey - value - public static <K,V> ImmutableEntry<K,V> from(Map.Entry<? extends K,? extends V> entry)
K - the key typeV - the value typeentry - @Deprecated public V setValue(V v) throws UnsupportedOperationException
setValue in interface Map.Entry<K,V>setValue in class AbstractMap.SimpleImmutableEntry<K,V>v - UnsupportedOperationException - the unsupported operation exceptionCopyright © 2021. All rights reserved.