Android
java.util
public static interface

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

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

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

Summary

Public Methods

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

Details

Public Methods

public 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 K getKey()

Gets the key.

Returns

  • the key

public V getValue()

Gets the value.

Returns

  • the value

public 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 V setValue(V object)

Sets the value.

Parameters

object the new value

Returns

  • object
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56