Type Parameters:
K - the type of key
V - 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

    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.

    toString()

    Returns a String representation of this map entry.

  • Constructor Details

    • SimpleEntry

    • SimpleEntry

  • Method Details

    • getKey

    • getValue

    • setValue

    • equals

    • hashCode

    • toString