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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java (file contents):
Revision 1.18 by jsr166, Mon May 2 21:44:01 2005 UTC vs.
Revision 1.19 by jsr166, Mon May 2 21:51:38 2005 UTC

# Line 2054 | Line 2054 | public class ConcurrentSkipListMap<K,V>
2054  
2055      /**
2056       * Remove entry for key only if currently mapped to given value.
2057 <     * Acts as
2057 >     * This is equivalent to
2058       * <pre>
2059       *  if (map.containsKey(key) && map.get(key).equals(value)) {
2060       *     map.remove(key);
# Line 2076 | Line 2076 | public class ConcurrentSkipListMap<K,V>
2076  
2077      /**
2078       * Replaces entry for key only if currently mapped to given value.
2079 <     * Acts as
2079 >     * This is equivalent to
2080       * <pre>
2081       *  if (map.containsKey(key) && map.get(key).equals(oldValue)) {
2082       *     map.put(key, newValue);
# Line 2112 | Line 2112 | public class ConcurrentSkipListMap<K,V>
2112  
2113      /**
2114       * Replaces entry for key only if currently mapped to some value.
2115 <     * Acts as
2115 >     * This is equivalent to
2116       * <pre>
2117       *  if (map.containsKey(key)) {
2118       *     return map.put(key, value);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines