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.79 by dl, Fri Aug 19 13:05:11 2005 UTC vs.
Revision 1.80 by jsr166, Mon Aug 22 01:51:23 2005 UTC

# Line 1120 | Line 1120 | public class ConcurrentHashMap<K, V> ext
1120      /**
1121       * Custom Entry class used by EntryIterator.next(), that relays
1122       * setValue changes to the underlying map.
1123 <     */
1123 >     */
1124      static final class WriteThroughEntry<K,V> extends AbstractMap.SimpleEntry<K,V> {
1125          private final ConcurrentHashMap<K,V> map;
1126 <        WriteThroughEntry(ConcurrentHashMap map, K k, V v) {
1127 <            super(k,v);
1126 >        WriteThroughEntry(ConcurrentHashMap map, K k, V v) {
1127 >            super(k,v);
1128              this.map = map;
1129          }
1130  
# Line 1148 | Line 1148 | public class ConcurrentHashMap<K, V> ext
1148      final class EntryIterator extends HashIterator implements Iterator<Entry<K,V>> {
1149          public Map.Entry<K,V> next() {
1150              HashEntry<K,V> e = super.nextEntry();
1151 <            return new WriteThroughEntry<K,V>(ConcurrentHashMap.this,
1151 >            return new WriteThroughEntry<K,V>(ConcurrentHashMap.this,
1152                                                e.key, e.value);
1153          }
1154      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines