You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/01/08 23:37:31 UTC
cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/buffer PriorityBuffer.java
scolebourne 2004/01/08 14:37:31
Modified: collections/src/java/org/apache/commons/collections/comparators
NullComparator.java
collections/src/java/org/apache/commons/collections/iterators
UnmodifiableMapIterator.java
UnmodifiableListIterator.java IteratorChain.java
UnmodifiableOrderedMapIterator.java
ArrayIterator.java UnmodifiableIterator.java
collections/src/java/org/apache/commons/collections/functors
StringValueTransformer.java ChainedTransformer.java
ChainedClosure.java
collections/src/java/org/apache/commons/collections/keyvalue
TiedMapEntry.java MultiKey.java
AbstractMapEntry.java DefaultKeyValue.java
collections/src/java/org/apache/commons/collections/bidimap
DualHashBidiMap.java DualTreeBidiMap.java
collections/src/java/org/apache/commons/collections/map
StaticBucketMap.java AbstractHashedMap.java
Flat3Map.java CompositeMap.java HashedMap.java
AbstractLinkedMap.java
collections/src/java/org/apache/commons/collections/bag
AbstractMapBag.java TreeBag.java HashBag.java
collections/src/java/org/apache/commons/collections/list
AbstractLinkedList.java CursorableLinkedList.java
LazyList.java
collections/src/java/org/apache/commons/collections/buffer
PriorityBuffer.java
Log:
Fix spellings and javadoc
bug 25937, from Janek Bogucki
Revision Changes Path
1.10 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/NullComparator.java
Index: NullComparator.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/NullComparator.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- NullComparator.java 9 Oct 2003 20:44:32 -0000 1.9
+++ NullComparator.java 8 Jan 2004 22:37:29 -0000 1.10
@@ -125,7 +125,7 @@
}
/**
- * Cosntruct an instance that sorts <code>null</code> higher or lower than
+ * Construct an instance that sorts <code>null</code> higher or lower than
* any non-<code>null</code> object it is compared with. When comparing
* two non-<code>null</code> objects, the specified {@link Comparator} is
* used.
1.5 +4 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/UnmodifiableMapIterator.java
Index: UnmodifiableMapIterator.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/UnmodifiableMapIterator.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- UnmodifiableMapIterator.java 3 Dec 2003 12:27:37 -0000 1.4
+++ UnmodifiableMapIterator.java 8 Jan 2004 22:37:29 -0000 1.5
@@ -77,7 +77,7 @@
/**
* Decorates the specified iterator such that it cannot be modified.
*
- * @param iterator the iterator to decoarate
+ * @param iterator the iterator to decorate
* @throws IllegalArgumentException if the iterator is null
*/
public static MapIterator decorate(MapIterator iterator) {
@@ -94,7 +94,7 @@
/**
* Constructor.
*
- * @param iterator the iterator to decoarate
+ * @param iterator the iterator to decorate
*/
private UnmodifiableMapIterator(MapIterator iterator) {
super();
1.3 +4 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/UnmodifiableListIterator.java
Index: UnmodifiableListIterator.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/UnmodifiableListIterator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UnmodifiableListIterator.java 3 Dec 2003 12:27:37 -0000 1.2
+++ UnmodifiableListIterator.java 8 Jan 2004 22:37:29 -0000 1.3
@@ -78,7 +78,7 @@
/**
* Decorates the specified iterator such that it cannot be modified.
*
- * @param iterator the iterator to decoarate
+ * @param iterator the iterator to decorate
* @throws IllegalArgumentException if the iterator is null
*/
public static ListIterator decorate(ListIterator iterator) {
@@ -95,7 +95,7 @@
/**
* Constructor.
*
- * @param iterator the iterator to decoarate
+ * @param iterator the iterator to decorate
*/
private UnmodifiableListIterator(ListIterator iterator) {
super();
1.10 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/IteratorChain.java
Index: IteratorChain.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/IteratorChain.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- IteratorChain.java 8 Jan 2004 22:26:07 -0000 1.9
+++ IteratorChain.java 8 Jan 2004 22:37:29 -0000 1.10
@@ -68,7 +68,7 @@
/**
* An IteratorChain is an Iterator that wraps a number of Iterators.
* <p>
- * This class makes mutiple iterators look like one to the caller
+ * This class makes multiple iterators look like one to the caller
* When any method from the Iterator interface is called, the IteratorChain
* will delegate to a single underlying Iterator. The IteratorChain will
* invoke the Iterators in sequence until all Iterators are exhausted.
1.4 +4 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java
Index: UnmodifiableOrderedMapIterator.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- UnmodifiableOrderedMapIterator.java 3 Dec 2003 12:27:37 -0000 1.3
+++ UnmodifiableOrderedMapIterator.java 8 Jan 2004 22:37:29 -0000 1.4
@@ -77,7 +77,7 @@
/**
* Decorates the specified iterator such that it cannot be modified.
*
- * @param iterator the iterator to decoarate
+ * @param iterator the iterator to decorate
* @throws IllegalArgumentException if the iterator is null
*/
public static OrderedMapIterator decorate(OrderedMapIterator iterator) {
@@ -94,7 +94,7 @@
/**
* Constructor.
*
- * @param iterator the iterator to decoarate
+ * @param iterator the iterator to decorate
*/
private UnmodifiableOrderedMapIterator(OrderedMapIterator iterator) {
super();
1.9 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/ArrayIterator.java
Index: ArrayIterator.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/ArrayIterator.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ArrayIterator.java 1 Dec 2003 22:49:00 -0000 1.8
+++ ArrayIterator.java 8 Jan 2004 22:37:29 -0000 1.9
@@ -164,7 +164,7 @@
* Checks whether the index is valid or not.
*
* @param bound the index to check
- * @param type the index type (for error messges)
+ * @param type the index type (for error messages)
* @throws IndexOutOfBoundsException if the index is invalid
*/
protected void checkBound(final int bound, final String type ) {
1.3 +4 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/UnmodifiableIterator.java
Index: UnmodifiableIterator.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/UnmodifiableIterator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UnmodifiableIterator.java 3 Dec 2003 12:27:37 -0000 1.2
+++ UnmodifiableIterator.java 8 Jan 2004 22:37:29 -0000 1.3
@@ -80,7 +80,7 @@
* <p>
* If the iterator is already unmodifiable it is returned directly.
*
- * @param iterator the iterator to decoarate
+ * @param iterator the iterator to decorate
* @throws IllegalArgumentException if the iterator is null
*/
public static Iterator decorate(Iterator iterator) {
@@ -97,7 +97,7 @@
/**
* Constructor.
*
- * @param iterator the iterator to decoarate
+ * @param iterator the iterator to decorate
*/
private UnmodifiableIterator(Iterator iterator) {
super();
1.2 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/functors/StringValueTransformer.java
Index: StringValueTransformer.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/StringValueTransformer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- StringValueTransformer.java 23 Nov 2003 23:25:33 -0000 1.1
+++ StringValueTransformer.java 8 Jan 2004 22:37:29 -0000 1.2
@@ -62,7 +62,7 @@
import org.apache.commons.collections.Transformer;
/**
- * Transformer implementation that returns the <code>String.valueof</code>.
+ * Transformer implementation that returns the <code>String.valueOf</code>.
*
* @since Commons Collections 3.0
* @version $Revision$ $Date$
1.3 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ChainedTransformer.java
Index: ChainedTransformer.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ChainedTransformer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ChainedTransformer.java 2 Jan 2004 01:36:51 -0000 1.2
+++ ChainedTransformer.java 8 Jan 2004 22:37:29 -0000 1.3
@@ -64,7 +64,7 @@
import org.apache.commons.collections.Transformer;
/**
- * Transformer implementation that chains the specifed closures together.
+ * Transformer implementation that chains the specified closures together.
*
* @since Commons Collections 3.0
* @version $Revision$ $Date$
1.2 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ChainedClosure.java
Index: ChainedClosure.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ChainedClosure.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ChainedClosure.java 23 Nov 2003 17:01:35 -0000 1.1
+++ ChainedClosure.java 8 Jan 2004 22:37:29 -0000 1.2
@@ -64,7 +64,7 @@
import org.apache.commons.collections.Closure;
/**
- * Closure implementation that chains the specifed closures together.
+ * Closure implementation that chains the specified closures together.
*
* @since Commons Collections 3.0
* @version $Revision$ $Date$
1.2 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java
Index: TiedMapEntry.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TiedMapEntry.java 5 Dec 2003 20:23:56 -0000 1.1
+++ TiedMapEntry.java 8 Jan 2004 22:37:30 -0000 1.2
@@ -152,7 +152,7 @@
* <p>
* Implemented per API documentation of {@link java.util.Map.Entry#hashCode()}
*
- * @return a suitable hashcode
+ * @return a suitable hash code
*/
public int hashCode() {
Object value = getValue();
1.2 +4 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/keyvalue/MultiKey.java
Index: MultiKey.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/keyvalue/MultiKey.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MultiKey.java 5 Dec 2003 20:23:56 -0000 1.1
+++ MultiKey.java 8 Jan 2004 22:37:30 -0000 1.2
@@ -203,14 +203,14 @@
}
/**
- * Gets the combined hashcode that is computed from all the keys.
+ * Gets the combined hash code that is computed from all the keys.
* <p>
* This value is computed once and then cached, so elements should not
* change their hash codes once created (note that this is the same
* constraint that would be used if the individual keys elements were
* themselves {@link java.util.Map Map} keys.
*
- * @return the hashcode
+ * @return the hash code
*/
public int hashCode() {
return hashCode;
1.2 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/keyvalue/AbstractMapEntry.java
Index: AbstractMapEntry.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/keyvalue/AbstractMapEntry.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AbstractMapEntry.java 5 Dec 2003 20:23:56 -0000 1.1
+++ AbstractMapEntry.java 8 Jan 2004 22:37:30 -0000 1.2
@@ -124,7 +124,7 @@
* <p>
* Implemented per API documentation of {@link java.util.Map.Entry#hashCode()}
*
- * @return a suitable hashcode
+ * @return a suitable hash code
*/
public int hashCode() {
return (getKey() == null ? 0 : getKey().hashCode()) ^
1.2 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/keyvalue/DefaultKeyValue.java
Index: DefaultKeyValue.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/keyvalue/DefaultKeyValue.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DefaultKeyValue.java 5 Dec 2003 20:23:56 -0000 1.1
+++ DefaultKeyValue.java 8 Jan 2004 22:37:30 -0000 1.2
@@ -189,7 +189,7 @@
* Implemented per API documentation of {@link java.util.Map.Entry#hashCode()},
* however subclasses may override this.
*
- * @return a suitable hashcode
+ * @return a suitable hash code
*/
public int hashCode() {
return (getKey() == null ? 0 : getKey().hashCode()) ^
1.4 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/bidimap/DualHashBidiMap.java
Index: DualHashBidiMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/bidimap/DualHashBidiMap.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DualHashBidiMap.java 5 Jan 2004 21:46:49 -0000 1.3
+++ DualHashBidiMap.java 8 Jan 2004 22:37:30 -0000 1.4
@@ -78,7 +78,7 @@
public class DualHashBidiMap
extends AbstractDualBidiMap implements Serializable {
- /** Ensure serialization compatability */
+ /** Ensure serialization compatibility */
private static final long serialVersionUID = 721969328361808L;
/**
1.10 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/bidimap/DualTreeBidiMap.java
Index: DualTreeBidiMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/bidimap/DualTreeBidiMap.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DualTreeBidiMap.java 5 Jan 2004 21:46:49 -0000 1.9
+++ DualTreeBidiMap.java 8 Jan 2004 22:37:30 -0000 1.10
@@ -96,7 +96,7 @@
public class DualTreeBidiMap
extends AbstractDualBidiMap implements SortedBidiMap, Serializable {
- /** Ensure serialization compatability */
+ /** Ensure serialization compatibility */
private static final long serialVersionUID = 721969328361809L;
/** The comparator to use */
protected final Comparator comparator;
1.9 +5 -5 jakarta-commons/collections/src/java/org/apache/commons/collections/map/StaticBucketMap.java
Index: StaticBucketMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/StaticBucketMap.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- StaticBucketMap.java 5 Jan 2004 22:15:14 -0000 1.8
+++ StaticBucketMap.java 8 Jan 2004 22:37:30 -0000 1.9
@@ -76,7 +76,7 @@
* {@link #remove(Object) remove} and {@link #containsKey(Object) containsKey}
* operations, assuming (approximate) uniform hashing and
* that the number of entries does not exceed the number of buckets. If the
- * number of entries exceeds the number of buckets or if the hashcodes of the
+ * 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
* (<i>O(n)</i>).<p>
@@ -461,9 +461,9 @@
}
/**
- * Gets the hashcode, as per the Map specification.
+ * Gets the hash code, as per the Map specification.
*
- * @return the hashcode
+ * @return the hash code
*/
public int hashCode() {
int hashCode = 0;
1.9 +7 -7 jakarta-commons/collections/src/java/org/apache/commons/collections/map/AbstractHashedMap.java
Index: AbstractHashedMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/AbstractHashedMap.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- AbstractHashedMap.java 5 Jan 2004 22:04:19 -0000 1.8
+++ AbstractHashedMap.java 8 Jan 2004 22:37:30 -0000 1.9
@@ -142,13 +142,13 @@
*
* @param initialCapacity the initial capacity, must be a power of two
* @param loadFactor the load factor, must be > 0.0f and generally < 1.0f
- * @param threshhold the threshold, must be sensible
+ * @param threshold the threshold, must be sensible
*/
- protected AbstractHashedMap(int initialCapacity, float loadFactor, int threshhold) {
+ protected AbstractHashedMap(int initialCapacity, float loadFactor, int threshold) {
super();
this.loadFactor = loadFactor;
this.data = new HashEntry[initialCapacity];
- this.threshold = threshhold;
+ this.threshold = threshold;
init();
}
@@ -693,7 +693,7 @@
* A MapIterator returns the keys in the map. It also provides convenient
* methods to get the key and value, and set the value.
* It avoids the need to create an entrySet/keySet/values object.
- * It also avoids creating the Mep Entry object.
+ * It also avoids creating the Map.Entry object.
*
* @return the map iterator
*/
@@ -1247,7 +1247,7 @@
/**
* Gets the standard Map hashCode.
*
- * @return the hashcode defined in the Map interface
+ * @return the hash code defined in the Map interface
*/
public int hashCode() {
int total = 0;
1.11 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/map/Flat3Map.java
Index: Flat3Map.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/Flat3Map.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Flat3Map.java 5 Jan 2004 22:04:19 -0000 1.10
+++ Flat3Map.java 8 Jan 2004 22:37:30 -0000 1.11
@@ -1041,7 +1041,7 @@
/**
* Gets the standard Map hashCode.
*
- * @return the hashcode defined in the Map interface
+ * @return the hash code defined in the Map interface
*/
public int hashCode() {
if (delegateMap != null) {
1.5 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/map/CompositeMap.java
Index: CompositeMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/CompositeMap.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- CompositeMap.java 5 Jan 2004 22:04:19 -0000 1.4
+++ CompositeMap.java 8 Jan 2004 22:37:30 -0000 1.5
@@ -519,7 +519,7 @@
* Called when adding a new Composited Map results in a
* key collision.
*
- * @param composite the CompositeMap withthe collision
+ * @param composite the CompositeMap with the collision
* @param existing the Map already in the composite which contains the
* offending key
* @param added the Map being added
1.13 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/map/HashedMap.java
Index: HashedMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/HashedMap.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- HashedMap.java 5 Jan 2004 22:04:19 -0000 1.12
+++ HashedMap.java 8 Jan 2004 22:37:30 -0000 1.13
@@ -67,7 +67,7 @@
* A <code>Map</code> implementation that is a general purpose alternative
* to <code>HashMap</code>.
* <p>
- * This implementation improves on the JDK1.4 HahMap by adding the
+ * This implementation improves on the JDK1.4 HashMap by adding the
* {@link org.apache.commons.collections.MapIterator MapIterator}
* functionality and many methods for subclassing.
* <p>
1.7 +5 -7 jakarta-commons/collections/src/java/org/apache/commons/collections/map/AbstractLinkedMap.java
Index: AbstractLinkedMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/AbstractLinkedMap.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- AbstractLinkedMap.java 5 Jan 2004 22:04:19 -0000 1.6
+++ AbstractLinkedMap.java 8 Jan 2004 22:37:30 -0000 1.7
@@ -120,10 +120,10 @@
*
* @param initialCapacity the initial capacity, must be a power of two
* @param loadFactor the load factor, must be > 0.0f and generally < 1.0f
- * @param threshhold the threshold, must be sensible
+ * @param threshold the threshold, must be sensible
*/
- protected AbstractLinkedMap(int initialCapacity, float loadFactor, int threshhold) {
- super(initialCapacity, loadFactor, threshhold);
+ protected AbstractLinkedMap(int initialCapacity, float loadFactor, int threshold) {
+ super(initialCapacity, loadFactor, threshold);
}
/**
@@ -341,7 +341,6 @@
* A MapIterator returns the keys in the map. It also provides convenient
* methods to get the key and value, and set the value.
* It avoids the need to create an entrySet/keySet/values object.
- * It also avoids creating the Mep Entry object.
*
* @return the map iterator
*/
@@ -359,7 +358,6 @@
* A MapIterator returns the keys in the map. It also provides convenient
* methods to get the key and value, and set the value.
* It avoids the need to create an entrySet/keySet/values object.
- * It also avoids creating the Mep Entry object.
*
* @return the map iterator
*/
1.12 +5 -5 jakarta-commons/collections/src/java/org/apache/commons/collections/bag/AbstractMapBag.java
Index: AbstractMapBag.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/bag/AbstractMapBag.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- AbstractMapBag.java 8 Jan 2004 22:26:08 -0000 1.11
+++ AbstractMapBag.java 8 Jan 2004 22:37:30 -0000 1.12
@@ -538,7 +538,7 @@
//-----------------------------------------------------------------------
/**
* Compares this Bag to another.
- * This Bag equals another Bag if it contains the same number of occurances of
+ * This Bag equals another Bag if it contains the same number of occurrences of
* the same elements.
*
* @param object the Bag to compare to
@@ -565,11 +565,11 @@
}
/**
- * Gets a hash code for the Bag compatable with the definition of equals.
+ * Gets a hash code for the Bag compatible with the definition of equals.
* The hash code is defined as the sum total of a hash code for each element.
* The per element hash code is defined as
* <code>(e==null ? 0 : e.hashCode()) ^ noOccurances)</code>.
- * This hash code is compatable with the Set interface.
+ * This hash code is compatible with the Set interface.
*
* @return the hash code of the Bag
*/
1.7 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/bag/TreeBag.java
Index: TreeBag.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/bag/TreeBag.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- TreeBag.java 5 Jan 2004 21:54:06 -0000 1.6
+++ TreeBag.java 8 Jan 2004 22:37:30 -0000 1.7
@@ -76,7 +76,7 @@
* iterator.
* <p>
* A <code>Bag</code> stores each object in the collection together with a
- * count of occurances. Extra methods on the interface allow multiple copies
+ * count of occurrences. Extra methods on the interface allow multiple copies
* of an object to be added or removed at once. It is important to read the
* interface javadoc carefully as several methods violate the
* <code>Collection</code> interface specification.
1.6 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/bag/HashBag.java
Index: HashBag.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/bag/HashBag.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- HashBag.java 5 Jan 2004 21:54:06 -0000 1.5
+++ HashBag.java 8 Jan 2004 22:37:30 -0000 1.6
@@ -71,7 +71,7 @@
* data storage. This is the standard implementation of a bag.
* <p>
* A <code>Bag</code> stores each object in the collection together with a
- * count of occurances. Extra methods on the interface allow multiple copies
+ * count of occurrences. Extra methods on the interface allow multiple copies
* of an object to be added or removed at once. It is important to read the
* interface javadoc carefully as several methods violate the
* <code>Collection</code> interface specification.
1.6 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/list/AbstractLinkedList.java
Index: AbstractLinkedList.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/AbstractLinkedList.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- AbstractLinkedList.java 29 Dec 2003 01:04:44 -0000 1.5
+++ AbstractLinkedList.java 8 Jan 2004 22:37:31 -0000 1.6
@@ -701,7 +701,7 @@
* #previous()}. Set to <code>null</code> if {@link #next()} or {@link
* #previous()} haven't been called, or if the node has been removed
* with {@link #remove()} or a new node added with {@link #add(Object)}.
- * Should be accesed through {@link #getLastNodeReturned()} to enforce
+ * Should be accessed through {@link #getLastNodeReturned()} to enforce
* this behaviour.
*/
protected Node current;
1.3 +4 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/list/CursorableLinkedList.java
Index: CursorableLinkedList.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/CursorableLinkedList.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CursorableLinkedList.java 29 Dec 2003 00:38:08 -0000 1.2
+++ CursorableLinkedList.java 8 Jan 2004 22:37:31 -0000 1.3
@@ -84,7 +84,7 @@
* with changes to the iterator. Note that the {@link #iterator()} method and
* sublists do <b>not</b> provide this cursor behaviour.
* <p>
- * The <code>Cursor</code> class is provided partly for backwards compatability
+ * The <code>Cursor</code> class is provided partly for backwards compatibility
* and partly because it allows the cursor to be directly closed. Closing the
* cursor is optional because references are held via a <code>WeakReference</code>.
* For most purposes, simply modify the iterator and list at will, and then let
@@ -103,7 +103,7 @@
*/
public class CursorableLinkedList extends AbstractLinkedList implements Serializable {
- /** Ensure serialization compatability */
+ /** Ensure serialization compatibility */
private static final long serialVersionUID = 8836393098519411393L;
/** A list of the cursor currently open on this list */
1.2 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/list/LazyList.java
Index: LazyList.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/LazyList.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- LazyList.java 16 Nov 2003 00:05:47 -0000 1.1
+++ LazyList.java 8 Jan 2004 22:37:31 -0000 1.2
@@ -133,7 +133,7 @@
* <p>
* If the requested index is greater than the current size, the list will
* grow to the new size and a new object will be returned from the factory.
- * Indexes inbetween the old size and the requested size are left with a
+ * Indexes in-between the old size and the requested size are left with a
* placeholder that is replaced with a factory object when requested.
*
* @param index the index to retrieve
1.2 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/buffer/PriorityBuffer.java
Index: PriorityBuffer.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/buffer/PriorityBuffer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PriorityBuffer.java 2 Jan 2004 02:14:29 -0000 1.1
+++ PriorityBuffer.java 8 Jan 2004 22:37:31 -0000 1.2
@@ -341,7 +341,7 @@
/**
* Percolates element down heap from the position given by the index.
* <p>
- * Assumes it is a mimimum heap.
+ * Assumes it is a minimum heap.
*
* @param index the index for the element
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org