Class ConcurrentReaderHashMap.Entry
- java.lang.Object
- 
- org.codehaus.groovy.runtime.metaclass.ConcurrentReaderHashMap.Entry
 
- 
- All Implemented Interfaces:
- java.util.Map.Entry
 - Enclosing class:
- ConcurrentReaderHashMap
 
 protected static class ConcurrentReaderHashMap.Entry extends java.lang.Object implements java.util.Map.EntryConcurrentReaderHashMap collision list entry.
- 
- 
Field SummaryFields Modifier and Type Field Description protected inthashprotected java.lang.Objectkeyprotected ConcurrentReaderHashMap.Entrynextprotected java.lang.Objectvalue
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.ObjectgetKey()java.lang.ObjectgetValue()Get the value.inthashCode()java.lang.ObjectsetValue(java.lang.Object value)Set the value of this entry.java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
hashprotected final int hash 
 - 
keyprotected final java.lang.Object key 
 - 
nextprotected final ConcurrentReaderHashMap.Entry next 
 - 
valueprotected volatile java.lang.Object value 
 
- 
 - 
Method Detail- 
getKeypublic java.lang.Object getKey() - Specified by:
- getKeyin interface- java.util.Map.Entry
 
 - 
getValuepublic java.lang.Object getValue() Get the value. Note: 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.- Specified by:
- getValuein interface- java.util.Map.Entry
- Returns:
- the current value, or null if the entry has been detectably removed.
 
 - 
setValuepublic java.lang.Object setValue(java.lang.Object value) Set the value of this entry. Note: 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 hash table in multi-threaded 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.)- Specified by:
- setValuein interface- java.util.Map.Entry
- Parameters:
- value- the new value.
- Returns:
- the previous value, or null if entry has been detectably removed.
- Throws:
- java.lang.NullPointerException- if the value is- null.
 
 - 
equalspublic boolean equals(java.lang.Object o) - Specified by:
- equalsin interface- java.util.Map.Entry
- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- java.util.Map.Entry
- Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-