|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.util.ConcurrentAbstractMap.Entry
protected static class ConcurrentAbstractMap.Entry
An inner class for chained hash lists.
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Object |
getKey()
|
Object |
getValue()
Gets the value. |
int |
hashCode()
|
Object |
setValue(Object v)
Sets the value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Object getKey()
getKey in interface Map.Entrypublic Object getValue()
Note that in an entrySet or entrySet.iterator, unless the set or iterator is used under synchronization of the table as a whole (or you can otherwise guarantee lack of concurrent modification), getValue might return null, reflecting the fact that the entry has been concurrently removed. However, there are no assurances that concurrent removals will be reflected using this method.
getValue in interface Map.Entrypublic Object setValue(Object v)
Note that in an entrySet or entrySet.iterator, unless the set or iterator is used under synchronization of the table as a whole (or you can otherwise guarantee lack of concurrent modification), setValue is not strictly guaranteed to actually replace the value field obtained via the get operation of the underlying map in multithreaded applications. If iterator-wide synchronization is not used, and any other concurrent put or remove operations occur, sometimes even to other entries, then this change is not guaranteed to be reflected in the hash table (it might, or it might not; there are no assurances either way).
setValue in interface Map.Entryv - the new value.
public boolean equals(Object o)
equals in interface Map.Entryequals in class Objectpublic int hashCode()
hashCode in interface Map.EntryhashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||