diff --git a/src/main/java/org/apache/commons/collections4/ArrayStack.java b/src/main/java/org/apache/commons/collections4/ArrayStack.java index 2a2845135..f10f96f86 100644 --- a/src/main/java/org/apache/commons/collections4/ArrayStack.java +++ b/src/main/java/org/apache/commons/collections4/ArrayStack.java @@ -28,7 +28,7 @@ import java.util.EmptyStackException; *
* The removal order of an {@code ArrayStack} is based on insertion * order: The most recently added element is removed first. The iteration - * order is not the same as the removal order. The iterator returns + * order is not the same as the removal order. The iterator returns * elements from the bottom up. *
*diff --git a/src/main/java/org/apache/commons/collections4/Bag.java b/src/main/java/org/apache/commons/collections4/Bag.java index e86b1918c..186934016 100644 --- a/src/main/java/org/apache/commons/collections4/Bag.java +++ b/src/main/java/org/apache/commons/collections4/Bag.java @@ -29,8 +29,8 @@ import java.util.Set; * calling {@link #uniqueSet()} would return {@code {a, b, c}}. *
*
- * NOTE: This interface violates the {@link Collection} contract.
- * The behavior specified in many of these methods is not the same
+ * NOTE: This interface violates the {@link Collection} contract.
+ * The behavior specified in many of these methods is not the same
* as the behavior specified by {@code Collection}.
* The non-compliant methods are clearly marked with "(Violation)".
* Exercise caution when using a bag as a {@code Collection}.
@@ -47,7 +47,7 @@ import java.util.Set;
public interface Bag
* If the object is already in the {@link #uniqueSet()} then increment its
@@ -82,7 +82,7 @@ public interface Bag
* The {@link Collection#containsAll(Collection)} method specifies
- * that cardinality should not be respected; this method should
+ * that cardinality should not be respected; this method should
* return true if the bag contains at least one of every object contained
* in the given collection.
*
* This will also remove the object from the {@link #uniqueSet()}.
*
* According to the {@link Collection#remove(Object)} method,
- * this method should only remove the first occurrence of the
- * given object, not all occurrences.
+ * this method should only remove the first occurrence of the
+ * given object, not all occurrences.
*
* The {@link Collection#removeAll(Collection)} method specifies
- * that cardinality should not be respected; this method should
- * remove all occurrences of every object contained in the
+ * that cardinality should not be respected; this method should
+ * remove all occurrences of every object contained in the
* given collection.
*
* The {@link Collection#retainAll(Collection)} method specifies
- * that cardinality should not be respected; this method should
- * keep all occurrences of every object contained in the
+ * that cardinality should not be respected; this method should
+ * keep all occurrences of every object contained in the
* given collection.
*
* In other words, this method returns {@code true} iff the
- * {@link #intersection} of coll1 and coll2 has the same cardinality as
+ * {@link #intersection} of coll1 and coll2 has the same cardinality as
* the set of unique values from {@code coll2}. In case {@code coll2} is empty, {@code true}
* will be returned.
*
* In other words, this method returns {@code true} iff the
- * {@link #intersection} of coll1 and coll2 is not empty.
+ * {@link #intersection} of coll1 and coll2 is not empty.
*
* In other words, this method returns {@code true} iff the
- * {@link #intersection} of coll1 and coll2 is not empty.
+ * {@link #intersection} of coll1 and coll2 is not empty.
*
- * The cardinality of each element e in the returned
+ * The cardinality of each element e in the returned
* {@link Collection} will be equal to
- *
* This is equivalent to
@@ -1189,9 +1189,9 @@ public class CollectionUtils {
* Returns {@code true} iff the given {@link Collection}s contain
* exactly the same elements with exactly the same cardinalities.
*
- * That is, iff the cardinality of e in a is
- * equal to the cardinality of e in b,
- * for each element e in a or b.
+ * That is, iff the cardinality of e in a is
+ * equal to the cardinality of e in b,
+ * for each element e in a or b.
*
- * That is, iff the cardinality of e in a is
- * equal to the cardinality of e in b,
- * for each element e in a or b.
+ * That is, iff the cardinality of e in a is
+ * equal to the cardinality of e in b,
+ * for each element e in a or b.
*
* Note: from version 4.1 onwards this method requires the input
@@ -1303,24 +1303,24 @@ public class CollectionUtils {
}
/**
- * Returns {@code true} iff a is a proper sub-collection of b,
- * that is, iff the cardinality of e in a is less
- * than or equal to the cardinality of e in b,
- * for each element e in a, and there is at least one
- * element f such that the cardinality of f in b
- * is strictly greater than the cardinality of f in a.
+ * Returns {@code true} iff a is a proper sub-collection of b,
+ * that is, iff the cardinality of e in a is less
+ * than or equal to the cardinality of e in b,
+ * for each element e in a, and there is at least one
+ * element f such that the cardinality of f in b
+ * is strictly greater than the cardinality of f in a.
*
* The implementation assumes
*
- * The cardinality of each element e in the returned {@link Collection}
- * that satisfies the predicate condition will be the cardinality of e in a
- * minus the cardinality of e in b, or zero, whichever is greater.
+ * The cardinality of each element e in the returned {@link Collection}
+ * that satisfies the predicate condition will be the cardinality of e in a
+ * minus the cardinality of e in b, or zero, whichever is greater.
*
- * The cardinality of each element e in the returned {@link Collection} that does not
- * satisfy the predicate condition will be equal to the cardinality of e in a.
+ * The cardinality of each element e in the returned {@link Collection} that does not
+ * satisfy the predicate condition will be equal to the cardinality of e in a.
*
- * The returned list may be modifiable, but updates will not be
+ * The returned list may be modifiable, but updates will not be
* propagated to this list-valued map. In case no mapping was stored for the
* specified key, an empty, unmodifiable list will be returned.
*
diff --git a/src/main/java/org/apache/commons/collections4/MultiValuedMap.java b/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
index 1e0c1cf60..5b1d6268e 100644
--- a/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
+++ b/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
@@ -286,7 +286,7 @@ public interface MultiValuedMap
- * The returned collection may be modifiable, but updates will not be propagated
+ * The returned collection may be modifiable, but updates will not be propagated
* to this multivalued map. In case no mapping was stored for the specified
* key, an empty, unmodifiable collection will be returned.
*
- * The returned set may be modifiable, but updates will not be
+ * The returned set may be modifiable, but updates will not be
* propagated to this set-valued map. In case no mapping was stored for the
* specified key, an empty, unmodifiable set will be returned.
*
* Since this method always increases the size of the bag, it
@@ -82,7 +82,7 @@ public final class CollectionBag
* Since this method always increases the size of the bag, it
@@ -111,7 +111,7 @@ public final class CollectionBag
* This will also remove the object from the {@link #uniqueSet()} if the
@@ -155,9 +155,9 @@ public final class CollectionBag
* Clients are encouraged to use the value returned from
* this method instead of constructing a new instance
@@ -112,8 +112,8 @@ public final class BooleanComparator implements Comparator
* Please use the static factories instead whenever possible.
*
@@ -142,12 +142,12 @@ public final class BooleanComparator implements Comparator
* This implementation returns {@code true}
- * iff {@code that} is a {@link BooleanComparator}
+ * iff {@code that} is a {@link BooleanComparator}
* whose value of {@link #sortsTrueFirst()} is equal to mine.
*
* @param object the object to compare to
diff --git a/src/main/java/org/apache/commons/collections4/comparators/ComparableComparator.java b/src/main/java/org/apache/commons/collections4/comparators/ComparableComparator.java
index fcd03fb78..2e0a109cc 100644
--- a/src/main/java/org/apache/commons/collections4/comparators/ComparableComparator.java
+++ b/src/main/java/org/apache/commons/collections4/comparators/ComparableComparator.java
@@ -82,9 +82,9 @@ public class ComparableComparator
* This implementation returns {@code true} iff
- * {@code object.{@link Object#getClass() getClass()}} equals
+ * {@code object.{@link Object#getClass() getClass()}} equals
* {@code this.getClass()}. Subclasses may want to override this behavior to remain
* consistent with the {@link Comparator#equals(Object)} contract.
*
diff --git a/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java b/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
index 37db15cb4..947eec633 100644
--- a/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
+++ b/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
@@ -38,13 +38,13 @@ import java.util.Objects;
*
* Calling a method that adds new Comparators or changes the ascend/descend sort
- * after compare(Object, Object) has been called will result in an
- * UnsupportedOperationException. However, take care to not alter the
+ * after compare(Object, Object) has been called will result in an
+ * UnsupportedOperationException. However, take care to not alter the
* underlying List of Comparators or the BitSet that defines the sort order.
*
* Instances of ComparatorChain are not synchronized. The class is not
- * thread-safe at construction time, but it is thread-safe to perform
+ * thread-safe at construction time, but it is thread-safe to perform
* multiple comparisons after all the setup operations are complete.
*
* This implementation returns {@code true}
- * iff {@code object.{@link Object#getClass() getClass()}}
+ * iff {@code object.{@link Object#getClass() getClass()}}
* equals {@code this.getClass()}, and the underlying
* comparators and order bits are equal.
* Subclasses may want to override this behavior to remain consistent
diff --git a/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java b/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java
index 3ae2db6a4..3066c70d4 100644
--- a/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java
+++ b/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java
@@ -75,12 +75,12 @@ public class ReverseComparator
* This implementation returns {@code true}
- * iff {@code object.{@link Object#getClass() getClass()}}
+ * iff {@code object.{@link Object#getClass() getClass()}}
* equals {@code this.getClass()}, and the underlying
* comparators are equal.
* Subclasses may want to override this behavior to remain consistent
diff --git a/src/main/java/org/apache/commons/collections4/comparators/TransformingComparator.java b/src/main/java/org/apache/commons/collections4/comparators/TransformingComparator.java
index b8dbe4f0e..5d6b18027 100644
--- a/src/main/java/org/apache/commons/collections4/comparators/TransformingComparator.java
+++ b/src/main/java/org/apache/commons/collections4/comparators/TransformingComparator.java
@@ -87,12 +87,12 @@ public class TransformingComparator implements Comparator, Serializable
}
/**
- * Returns {@code true} iff that Object is
+ * Returns {@code true} iff that Object is
* a {@link Comparator} whose ordering is known to be
* equivalent to mine.
*
* This implementation returns {@code true}
- * iff {@code that} is a {@link TransformingComparator}
+ * iff {@code that} is a {@link TransformingComparator}
* whose attributes are equal to mine.
*
* @param object the object to compare to
diff --git a/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java b/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java
index 59dc9cb11..2e1c12901 100644
--- a/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java
@@ -204,7 +204,7 @@ public class CollatingIterator
- * (Violation) The {@code List} interface requires that this
+ * (Violation) The {@code List} interface requires that this
* method returns {@code true} always. However, this class may return
* {@code false} because of the {@code Set} behavior.
*
@@ -200,7 +200,7 @@ public class SetUniqueList
- * (Violation) The {@code List} interface makes the assumption
+ * (Violation) The {@code List} interface makes the assumption
* that the element is always inserted. This may not happen with this
* implementation.
*
@@ -222,7 +222,7 @@ public class SetUniqueList
- * (Violation) The {@code List} interface makes the assumption
+ * (Violation) The {@code List} interface makes the assumption
* that the elements are always inserted. This may not happen with this
* implementation.
*
@@ -241,7 +241,7 @@ public class SetUniqueList
- * (Violation) The {@code List} interface makes the assumption
+ * (Violation) The {@code List} interface makes the assumption
* that the elements are always inserted. This may not happen with this
* implementation.
*
diff --git a/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java
index e08302356..632233495 100644
--- a/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java
@@ -69,7 +69,7 @@ import org.apache.commons.collections4.keyvalue.DefaultMapEntry;
* hard keys and soft values, providing a memory-sensitive cache.
*
- * This {@link Map} implementation does not allow null elements.
+ * This {@link Map} implementation does not allow null elements.
* Attempting to add a null key or value to the map will raise a
* {@code NullPointerException}.
*
- * This {@link java.util.Map Map} implementation does not allow null elements.
+ * This {@link java.util.Map Map} implementation does not allow null elements.
* Attempting to add a null key or value to the map will raise a {@code NullPointerException}.
*
diff --git a/src/main/java/org/apache/commons/collections4/map/ReferenceMap.java b/src/main/java/org/apache/commons/collections4/map/ReferenceMap.java
index 5f98bb6d6..c94ce1b5f 100644
--- a/src/main/java/org/apache/commons/collections4/map/ReferenceMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/ReferenceMap.java
@@ -47,7 +47,7 @@ import java.io.Serializable;
* It differs in that keys and values in this class are compared using {@code equals()}.
*
- * This {@link java.util.Map Map} implementation does not allow null elements.
+ * This {@link java.util.Map Map} implementation does not allow null elements.
* Attempting to add a null key or value to the map will raise a {@code NullPointerException}.
*
diff --git a/src/main/java/org/apache/commons/collections4/map/SingletonMap.java b/src/main/java/org/apache/commons/collections4/map/SingletonMap.java
index dce5b9f2e..4922cfd7b 100644
--- a/src/main/java/org/apache/commons/collections4/map/SingletonMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/SingletonMap.java
@@ -38,7 +38,7 @@ import org.apache.commons.collections4.keyvalue.TiedMapEntry;
*
* The single key/value pair is specified at creation.
* The map is fixed size so any action that would change the size is disallowed.
- * However, the {@code put} or {@code setValue} methods can change
+ * However, the {@code put} or {@code setValue} methods can change
* the value associated with the key.
*
diff --git a/src/main/java/org/apache/commons/collections4/map/StaticBucketMap.java b/src/main/java/org/apache/commons/collections4/map/StaticBucketMap.java
index 441436f86..2abd65ab1 100644
--- a/src/main/java/org/apache/commons/collections4/map/StaticBucketMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/StaticBucketMap.java
@@ -41,7 +41,7 @@ import org.apache.commons.collections4.KeyValue;
* number of entries exceeds the number of buckets or if the hash codes of the
* objects are not uniformly distributed, these operations have a worst case
* scenario that is proportional to the number of elements in the map
- * (O(n)).
+ * (O(n)).
*
* Each bucket in the hash table has its own monitor, so two threads can
@@ -52,7 +52,7 @@ import org.apache.commons.collections4.KeyValue;
* that this map implementation behaves in ways you may find disconcerting.
* Bulk operations, such as {@link #putAll(Map) putAll} or the
* {@link Collection#retainAll(Collection) retainAll} operation in collection
- * views, are not atomic. If two threads are simultaneously
+ * views, are not atomic. If two threads are simultaneously
* executing
*
- * The iterators returned by the collection views of this class are not
- * fail-fast. They will never raise a
+ * The iterators returned by the collection views of this class are not
+ * fail-fast. They will never raise a
* {@link java.util.ConcurrentModificationException}. Keys and values
* added to the map after the iterator is created do not necessarily appear
* during iteration. Similarly, the iterator does not necessarily fail to
@@ -86,7 +86,7 @@ import org.apache.commons.collections4.KeyValue;
*
* Finally, unlike {@link java.util.HashMap}-style implementations, this
- * class never rehashes the map. The number of buckets is fixed
+ * class never rehashes the map. The number of buckets is fixed
* at construction time and never altered. Performance may degrade if
* you do not allocate enough buckets upfront.
* max(cardinality(e,a),cardinality(e,b)) - min(cardinality(e,a),
- * cardinality(e,b))
.
+ * max(cardinality(e,a),cardinality(e,b)) - min(cardinality(e,a),
+ * cardinality(e,b))
.
*
*
*
* @param a the first (sub?) collection, must not be null
* @param b the second (super?) collection, must not be null
- * @return {@code true} iff a is a proper sub-collection of b
+ * @return {@code true} iff a is a proper sub-collection of b
* @throws NullPointerException if either collection is null
* @see #isSubCollection
* @see Collection#containsAll
@@ -1332,14 +1332,14 @@ public class CollectionUtils {
}
/**
- * Returns {@code true} iff a is a sub-collection of b,
- * that is, iff the cardinality of e in a is less than or
- * equal to the cardinality of e in b, for each element e
- * in a.
+ * Returns {@code true} iff a is a sub-collection of b,
+ * that is, iff the cardinality of e in a is less than or
+ * equal to the cardinality of e in b, for each element e
+ * in a.
*
* @param a the first (sub?) collection, must not be null
* @param b the second (super?) collection, must not be null
- * @return {@code true} iff a is a sub-collection of b
+ * @return {@code true} iff a is a sub-collection of b
* @throws NullPointerException if either collection is null
* @see #isProperSubCollection
* @see Collection#containsAll
@@ -1946,10 +1946,10 @@ public class CollectionUtils {
}
/**
- * Returns a new {@link Collection} containing {@code a - b}.
- * The cardinality of each element e in the returned {@link Collection}
- * will be the cardinality of e in a minus the cardinality
- * of e in b, or zero, whichever is greater.
+ * Returns a new {@link Collection} containing {@code a - b}.
+ * The cardinality of each element e in the returned {@link Collection}
+ * will be the cardinality of e in a minus the cardinality
+ * of e in b, or zero, whichever is greater.
*
* @param a the collection to subtract from, must not be null
* @param b the collection to subtract, must not be null
@@ -1964,23 +1964,23 @@ public class CollectionUtils {
}
/**
- * Returns a new {@link Collection} containing a minus a subset of
- * b. Only the elements of b that satisfy the predicate
- * condition, p are subtracted from a.
+ * Returns a new {@link Collection} containing a minus a subset of
+ * b. Only the elements of b that satisfy the predicate
+ * condition, p are subtracted from a.
*
* (e1==null ? e2==null :
+ * the two lists are equal. (Two elements {@code e1} and
+ * {@code e2} are equal if
(e1==null ? e2==null :
* e1.equals(e2))
.) In other words, two lists are defined to be
* equal if they contain the same elements in the same order. This
* definition ensures that the equals method works properly across
diff --git a/src/main/java/org/apache/commons/collections4/ListValuedMap.java b/src/main/java/org/apache/commons/collections4/ListValuedMap.java
index 22d7c1fe2..75079bd32 100644
--- a/src/main/java/org/apache/commons/collections4/ListValuedMap.java
+++ b/src/main/java/org/apache/commons/collections4/ListValuedMap.java
@@ -53,7 +53,7 @@ public interface ListValuedMap