ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.80 by jsr166, Mon Aug 22 01:51:23 2005 UTC vs.
Revision 1.81 by jsr166, Mon Aug 22 01:57:42 2005 UTC

# Line 1121 | Line 1121 | public class ConcurrentHashMap<K, V> ext
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);
# Line 1133 | Line 1135 | public class ConcurrentHashMap<K, V> ext
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           */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines