Map.Entry (Java SE 25 & JDK 25)
- Type Parameters:
K- the type of the keyV- the type of the value
- All Known Implementing Classes:
AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry
-
Method Summary
Returns a comparator that compares
Map.Entryin natural order on key.Returns a comparator that compares
Map.Entryin natural order on value.copyOf(Map.Entry<? extends K, ? extends V> e) Returns a copy of the given
Map.Entry.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 (optional operation).
-
Method Details
-
getKey
-
getValue
-
setValue
-
equals
-
hashCode
-
comparingByKey
-
comparingByValue
-
comparingByKey
-
comparingByValue
-
copyOf
-