|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.MapEntry<K,V>
class MapEntry<K,V>
MapEntry is an internal class which provides an implementation of Map.Entry.
| Nested Class Summary | |
|---|---|
(package private) static interface |
MapEntry.Type<RT,KT,VT>
|
| Field Summary | |
|---|---|
(package private) K |
key
|
(package private) V |
value
|
| Constructor Summary | |
|---|---|
MapEntry(K theKey)
|
|
MapEntry(K theKey,
V theValue)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver. |
boolean |
equals(Object object)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
K |
getKey()
Gets the key. |
V |
getValue()
Gets the value. |
int |
hashCode()
Returns an integer hash code for the receiver. |
V |
setValue(V object)
Sets the value. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
K key
V value
| Constructor Detail |
|---|
MapEntry(K theKey)
MapEntry(K theKey,
V theValue)
| Method Detail |
|---|
public Object clone()
ObjectClasses which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.
clone in class Objectpublic boolean equals(Object object)
Object
equals in interface Map.Entry<K,V>equals in class Objectobject - Object the object to compare with this object.
true if the object is the same as this
object false if it is different from this object.Object.hashCode()public K getKey()
Map.Entry
getKey in interface Map.Entry<K,V>public V getValue()
Map.Entry
getValue in interface Map.Entry<K,V>public int hashCode()
Objecttrue when passed to .equals must
answer the same value for this method.
hashCode in interface Map.Entry<K,V>hashCode in class ObjectObject.equals(java.lang.Object)public V setValue(V object)
Map.Entry
setValue in interface Map.Entry<K,V>object - the new value
public String toString()
Object
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||