1121 |
|
* Custom Entry class used by EntryIterator.next(), that relays |
1122 |
|
* setValue changes to the underlying map. |
1123 |
|
*/ |
1124 |
< |
static final class WriteThroughEntry<K,V> extends AbstractMap.SimpleEntry<K,V> { |
1124 |
> |
static final class WriteThroughEntry<K,V> |
1125 |
> |
extends AbstractMap.SimpleEntry<K,V> |
1126 |
> |
{ |
1127 |
|
private final ConcurrentHashMap<K,V> map; |
1128 |
|
WriteThroughEntry(ConcurrentHashMap map, K k, V v) { |
1129 |
|
super(k,v); |
1135 |
|
* value to return is somewhat arbitrary here. Since a |
1136 |
|
* WriteThroughEntry does not necessarily track asynchronous |
1137 |
|
* changes, the most recent "previous" value could be |
1138 |
< |
* different than what we return (or could even have been |
1138 |
> |
* different from what we return (or could even have been |
1139 |
|
* removed in which case the put will re-establish). We do not |
1140 |
|
* and cannot guarantee more. |
1141 |
|
*/ |