Android APIs
Added in API level 1
public static interface

Map.Entry

java.util.Map.Entry<K, V>
Known Indirect Subclasses

Class Overview

Map.Entry is a key/value mapping contained in a Map.

Summary

Public Methods
abstract boolean equals(Object object)
Compares the specified object to this Map.Entry and returns if they are equal.
abstract K getKey()
Returns the key.
abstract V getValue()
Returns the value.
abstract int hashCode()
Returns an integer hash code for the receiver.
abstract V setValue(V object)
Sets the value of this entry to the specified value, replacing any existing value.

Public Methods

public abstract boolean equals (Object object)

Added in API level 1

Compares the specified object to this Map.Entry and returns if they are equal. To be equal, the object must be an instance of Map.Entry and have the same key and value.

Parameters
object Object: the Object to compare with this Object.
Returns
boolean true if the specified Object is equal to this Map.Entry, false otherwise.

See also:

public abstract K getKey ()

Added in API level 1

Returns the key.

Returns
K the key

public abstract V getValue ()

Added in API level 1

Returns the value.

Returns
V the value

public abstract int hashCode ()

Added in API level 1

Returns an integer hash code for the receiver. Object which are equal return the same value for this method.

Returns
int the receiver's hash code.

See also:

public abstract V setValue (V object)

Added in API level 1

Sets the value of this entry to the specified value, replacing any existing value.

Parameters
object V: the new value to set.
Returns
V object the replaced value of this entry.