Package com.landawn.abacus.util
Class ImmutableEntry<K,V>
java.lang.Object
java.util.AbstractMap.SimpleImmutableEntry<K,V>
com.landawn.abacus.util.ImmutableEntry<K,V>
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
Immutable
,Serializable
,Map.Entry<K,
V>
@Immutable
public final class ImmutableEntry<K,V>
extends AbstractMap.SimpleImmutableEntry<K,V>
implements Immutable
- Since:
- 0.9
- Author:
- Haiyang Li
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> ImmutableEntry<K, V> static <K,
V> ImmutableEntry<K, V> of
(K key, V value) Deprecated.
-
Method Details
-
of
- Type Parameters:
K
- the key typeV
- the value type- Parameters:
key
-value
-- Returns:
-
copyOf
- Type Parameters:
K
- the key typeV
- the value type- Parameters:
entry
-- Returns:
-
setValue
Deprecated.Always throw UnsupportedOperationException.- Specified by:
setValue
in interfaceMap.Entry<K,
V> - Overrides:
setValue
in classAbstractMap.SimpleImmutableEntry<K,
V> - Parameters:
v
-- Returns:
- Throws:
UnsupportedOperationException
- the unsupported operation exception
-