--- jsr166/src/jsr166x/ConcurrentSkipListSet.java 2004/09/06 17:01:54 1.2
+++ jsr166/src/jsr166x/ConcurrentSkipListSet.java 2004/09/07 11:37:57 1.3
@@ -36,7 +36,7 @@ import java.util.concurrent.*;
* optional methods of the {@link Set} and {@link Iterator}
* interfaces. Like most other concurrent collection implementations,
* this class does not permit the use of null elements.
- * because null arguments and return values cannot be reliably
+ * because null arguments and return values cannot be reliably
* distinguished from the absence of elements.
*
* @author Doug Lea
@@ -85,7 +85,7 @@ public class ConcurrentSkipListSet
*
* @throws ClassCastException if the elements in the specified
* collection are not comparable, or are not mutually comparable.
- * @throws NullPointerException if the specified collection is null.
+ * @throws NullPointerException if the specified collection is null.
*/
public ConcurrentSkipListSet(Collection extends E> c) {
m = new ConcurrentSkipListMap();
@@ -97,7 +97,7 @@ public class ConcurrentSkipListSet
* sorted set, sorted according to the same ordering.
*
* @param s sorted set whose elements will comprise the new set.
- * @throws NullPointerException if the specified sorted set is null.
+ * @throws NullPointerException if the specified sorted set is null.
*/
public ConcurrentSkipListSet(SortedSet s) {
m = new ConcurrentSkipListMap(s.comparator());
@@ -217,10 +217,10 @@ public class ConcurrentSkipListSet
/**
* Returns an element greater than or equal to the given element, or
- * null if there is no such element.
+ * null if there is no such element.
*
* @param o the value to match
- * @return an element greater than or equal to given element, or null
+ * @return an element greater than or equal to given element, or null
* if there is no such element.
* @throws ClassCastException if o cannot be compared with the elements
* currently in the set.
@@ -231,12 +231,12 @@ public class ConcurrentSkipListSet
}
/**
- * Returns an element strictly less than the given element, or null if
+ * Returns an element strictly less than the given element, or null if
* there is no such element.
*
* @param o the value to match
* @return the greatest element less than the given element, or
- * null if there is no such element.
+ * null if there is no such element.
* @throws ClassCastException if o cannot be compared with the elements
* currently in the set.
* @throws NullPointerException if o is null.
@@ -246,12 +246,12 @@ public class ConcurrentSkipListSet
}
/**
- * Returns an element less than or equal to the given element, or null
+ * Returns an element less than or equal to the given element, or null
* if there is no such element.
*
* @param o the value to match
* @return the greatest element less than or equal to given
- * element, or null if there is no such element.
+ * element, or null if there is no such element.
* @throws ClassCastException if o cannot be compared with the elements
* currently in the set.
* @throws NullPointerException if o is null.
@@ -261,12 +261,12 @@ public class ConcurrentSkipListSet
}
/**
- * Returns an element strictly greater than the given element, or null
+ * Returns an element strictly greater than the given element, or null
* if there is no such element.
*
* @param o the value to match
* @return the least element greater than the given element, or
- * null if there is no such element.
+ * null if there is no such element.
* @throws ClassCastException if o cannot be compared with the elements
* currently in the set.
* @throws NullPointerException if o is null.
@@ -411,8 +411,8 @@ public class ConcurrentSkipListSet
/**
* Creates a new submap.
- * @param fromElement inclusive least value, or null if from start
- * @param toElement exclusive upper bound or null if to end
+ * @param fromElement inclusive least value, or null if from start
+ * @param toElement exclusive upper bound or null if to end
* @throws IllegalArgumentException if fromElement and toElement
* nonnull and fromElement greater than toElement
*/
@@ -520,10 +520,10 @@ public class ConcurrentSkipListSet
/**
* Returns an element greater than or equal to the given
- * element, or null if there is no such element.
+ * element, or null if there is no such element.
*
* @param o the value to match
- * @return an element greater than or equal to given element, or null
+ * @return an element greater than or equal to given element, or null
* if there is no such element.
* @throws ClassCastException if o cannot be compared with the
* elements currently in the set.
@@ -539,12 +539,12 @@ public class ConcurrentSkipListSet
}
/**
- * Returns an element strictly less than the given element, or null if
+ * Returns an element strictly less than the given element, or null if
* there is no such element.
*
* @param o the value to match
* @return the greatest element less than the given element, or
- * null if there is no such element.
+ * null if there is no such element.
* @throws ClassCastException if o cannot be compared with the
* elements currently in the set.
* @throws NullPointerException if o is null.
@@ -555,12 +555,12 @@ public class ConcurrentSkipListSet
}
/**
- * Returns an element less than or equal to the given element, or null
+ * Returns an element less than or equal to the given element, or null
* if there is no such element.
*
* @param o the value to match
* @return the greatest element less than or equal to given
- * element, or null if there is no such element.
+ * element, or null if there is no such element.
* @throws ClassCastException if o cannot be compared with the
* elements currently in the set.
* @throws NullPointerException if o is null.
@@ -571,12 +571,12 @@ public class ConcurrentSkipListSet
}
/**
- * Returns an element strictly greater than the given element, or null
+ * Returns an element strictly greater than the given element, or null
* if there is no such element.
*
* @param o the value to match
* @return the least element greater than the given element, or
- * null if there is no such element.
+ * null if there is no such element.
* @throws ClassCastException if o cannot be compared with the
* elements currently in the set.
* @throws NullPointerException if o is null.