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.11 by jsr166, Tue Apr 26 21:14:31 2005 UTC vs.
Revision 1.12 by jsr166, Mon May 2 03:04:41 2005 UTC

# Line 2057 | Line 2057 | public class ConcurrentSkipListMap<K,V>
2057       * Remove entry for key only if currently mapped to given value.
2058       * Acts as
2059       * <pre>
2060 <     *  if ((map.containsKey(key) && map.get(key).equals(value)) {
2060 >     *  if (map.containsKey(key) && map.get(key).equals(value)) {
2061       *     map.remove(key);
2062       *     return true;
2063       * } else return false;
# Line 2080 | Line 2080 | public class ConcurrentSkipListMap<K,V>
2080       * Replace entry for key only if currently mapped to given value.
2081       * Acts as
2082       * <pre>
2083 <     *  if ((map.containsKey(key) && map.get(key).equals(oldValue)) {
2083 >     *  if (map.containsKey(key) && map.get(key).equals(oldValue)) {
2084       *     map.put(key, newValue);
2085       *     return true;
2086       * } else return false;
# Line 2117 | Line 2117 | public class ConcurrentSkipListMap<K,V>
2117       * Replace entry for key only if currently mapped to some value.
2118       * Acts as
2119       * <pre>
2120 <     *  if ((map.containsKey(key)) {
2120 >     *  if (map.containsKey(key)) {
2121       *     return map.put(key, value);
2122       * } else return null;
2123       * </pre>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines