加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090218195531/http://developer.android.com:80/reference/java/util/Map.Entry.html
public static interface

Map.Entry

java.util.Map.Entry<K, V>

Class Overview

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

Summary

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

Public Methods

public abstract boolean equals (Object object)

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

Parameters
object the object to compare with this object
Returns
  • true if the specified object is equal to this Map.Entry, false otherwise
See Also

public abstract K getKey ()

Gets the key.

Returns
  • the key

public abstract V getValue ()

Gets the value.

Returns
  • the value

public abstract int hashCode ()

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

Returns
  • the receiver's hash
See Also

public abstract V setValue (V object)

Sets the value.

Parameters
object the new value
Returns
  • object