Type Parameters:
K - the type of the key
V - the type of the value
All Known Implementing Classes:
AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry
Enclosing interface:
Map<K,V>

  • Method Summary

    Returns a comparator that compares Map.Entry in natural order on key.

    Returns a comparator that compares Map.Entry in natural order on value.

    copyOf(Map.Entry<? extends K, ? extends V> e)

    Returns a copy of the given Map.Entry.

    boolean

    Compares the specified object with this entry for equality.

    getKey()

    Returns the key corresponding to this entry.

    getValue()

    Returns the value corresponding to this entry.

    int

    hashCode()

    Returns the hash code value for this map entry.

    setValue(V value)

    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