AbstractMap.SimpleEntry (Java SE 25 & JDK 25)
- Type Parameters:
K- the type of keyV- the type of the value
- All Implemented Interfaces:
Serializable, Map.Entry<K,V>
- Enclosing class:
AbstractMap<K,V>
-
Constructor Summary
Constructors
SimpleEntry(Map.Entry<? extends K, ? extends V> entry) Creates an entry representing the same mapping as the specified entry.
SimpleEntry(K key, V value) Creates an entry representing a mapping from the specified key to the specified value.
-
Method Summary
booleanCompares the specified object with this entry for equality.
getKey()Returns the key corresponding to this entry.
getValue()Returns the value corresponding to this entry.
inthashCode()Returns the hash code value for this map entry.
Replaces the value corresponding to this entry with the specified value.
toString()Returns a String representation of this map entry.
-
Constructor Details
-
SimpleEntry
-
SimpleEntry
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
equals
-
hashCode
-
toString
-