Class AbstractMap.SimpleImmutableEntry<K,V>
java.lang.Object
java.util.AbstractMap.SimpleImmutableEntry<K,V>
- Type Parameters:
K- the type of keyV- the type of value
- All Implemented Interfaces:
Map.Entry<K,V>
- Enclosing class:
AbstractMap<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleImmutableEntry(Map.Entry<? extends K, ? extends V> entry) Constructs a new instance by an entrySimpleImmutableEntry(K theKey, V theValue) Constructs a new instance by key and value. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAnswers whether the object is equal to this entry.getKey()Returns the key.getValue()Returns the value.inthashCode()Answers the hash code of this entry.Throws an UnsupportedOperationException.toString()Answers a String representation of this entry.
-
Constructor Details
-
SimpleImmutableEntry
-
SimpleImmutableEntry
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
equals
Answers whether the object is equal to this entry. This works across all kinds of the Map.Entry interface. -
hashCode
-
toString
-