|
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.concurrent.ConcurrentHashMap.SimpleEntry<K,V>
static final class ConcurrentHashMap.SimpleEntry<K,V>
This duplicates java.util.AbstractMap.SimpleEntry until this class is made accessible.
| Field Summary | |
|---|---|
(package private) K |
key
|
(package private) V |
value
|
| Constructor Summary | |
|---|---|
ConcurrentHashMap.SimpleEntry(K key,
V value)
|
|
ConcurrentHashMap.SimpleEntry(Map.Entry<K,V> e)
|
|
| Method Summary | |
|---|---|
(package private) static boolean |
eq(Object o1,
Object o2)
|
boolean |
equals(Object o)
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 value)
Sets the value. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
K key
V value
| Constructor Detail |
|---|
public ConcurrentHashMap.SimpleEntry(K key,
V value)
public ConcurrentHashMap.SimpleEntry(Map.Entry<K,V> e)
| Method Detail |
|---|
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 V setValue(V value)
Map.Entry
setValue in interface Map.Entry<K,V>value - the new value
public boolean equals(Object o)
Object
equals in interface Map.Entry<K,V>equals in class Objecto - 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 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 String toString()
Object
toString in class Object
static boolean eq(Object o1,
Object o2)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||