Fix spellings and javadoc
bug 25937, from Janek Bogucki git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
81cf8ee877
commit
e97baa4b4a
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/AbstractMapBag.java,v 1.11 2004/01/08 22:26:08 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/AbstractMapBag.java,v 1.12 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -79,7 +79,7 @@ import org.apache.commons.collections.set.UnmodifiableSet;
|
||||||
* the number of occurrences of that element in the bag.
|
* the number of occurrences of that element in the bag.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0 (previously DefaultMapBag v2.0)
|
* @since Commons Collections 3.0 (previously DefaultMapBag v2.0)
|
||||||
* @version $Revision: 1.11 $ $Date: 2004/01/08 22:26:08 $
|
* @version $Revision: 1.12 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Chuck Burdick
|
* @author Chuck Burdick
|
||||||
* @author Michael A. Smith
|
* @author Michael A. Smith
|
||||||
|
@ -538,7 +538,7 @@ public abstract class AbstractMapBag implements Bag {
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* Compares this Bag to another.
|
* 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.
|
* the same elements.
|
||||||
*
|
*
|
||||||
* @param object the Bag to compare to
|
* @param object the Bag to compare to
|
||||||
|
@ -565,11 +565,11 @@ public abstract class AbstractMapBag implements Bag {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 hash code is defined as the sum total of a hash code for each element.
|
||||||
* The per element hash code is defined as
|
* The per element hash code is defined as
|
||||||
* <code>(e==null ? 0 : e.hashCode()) ^ noOccurances)</code>.
|
* <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
|
* @return the hash code of the Bag
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/HashBag.java,v 1.5 2004/01/05 21:54:06 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/HashBag.java,v 1.6 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -71,13 +71,13 @@ import org.apache.commons.collections.Bag;
|
||||||
* data storage. This is the standard implementation of a bag.
|
* data storage. This is the standard implementation of a bag.
|
||||||
* <p>
|
* <p>
|
||||||
* A <code>Bag</code> stores each object in the collection together with a
|
* 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
|
* of an object to be added or removed at once. It is important to read the
|
||||||
* interface javadoc carefully as several methods violate the
|
* interface javadoc carefully as several methods violate the
|
||||||
* <code>Collection</code> interface specification.
|
* <code>Collection</code> interface specification.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0 (previously in main package v2.0)
|
* @since Commons Collections 3.0 (previously in main package v2.0)
|
||||||
* @version $Revision: 1.5 $ $Date: 2004/01/05 21:54:06 $
|
* @version $Revision: 1.6 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Chuck Burdick
|
* @author Chuck Burdick
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/TreeBag.java,v 1.6 2004/01/05 21:54:06 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/TreeBag.java,v 1.7 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -76,13 +76,13 @@ import org.apache.commons.collections.SortedBag;
|
||||||
* iterator.
|
* iterator.
|
||||||
* <p>
|
* <p>
|
||||||
* A <code>Bag</code> stores each object in the collection together with a
|
* 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
|
* of an object to be added or removed at once. It is important to read the
|
||||||
* interface javadoc carefully as several methods violate the
|
* interface javadoc carefully as several methods violate the
|
||||||
* <code>Collection</code> interface specification.
|
* <code>Collection</code> interface specification.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0 (previously in main package v2.0)
|
* @since Commons Collections 3.0 (previously in main package v2.0)
|
||||||
* @version $Revision: 1.6 $ $Date: 2004/01/05 21:54:06 $
|
* @version $Revision: 1.7 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Chuck Burdick
|
* @author Chuck Burdick
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bidimap/DualHashBidiMap.java,v 1.3 2004/01/05 21:46:49 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bidimap/DualHashBidiMap.java,v 1.4 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -70,7 +70,7 @@ import org.apache.commons.collections.BidiMap;
|
||||||
* Implementation of <code>BidiMap</code> that uses two <code>HashMap</code> instances.
|
* Implementation of <code>BidiMap</code> that uses two <code>HashMap</code> instances.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Id: DualHashBidiMap.java,v 1.3 2004/01/05 21:46:49 scolebourne Exp $
|
* @version $Id: DualHashBidiMap.java,v 1.4 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
*
|
*
|
||||||
* @author Matthew Hawthorne
|
* @author Matthew Hawthorne
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
|
@ -78,7 +78,7 @@ import org.apache.commons.collections.BidiMap;
|
||||||
public class DualHashBidiMap
|
public class DualHashBidiMap
|
||||||
extends AbstractDualBidiMap implements Serializable {
|
extends AbstractDualBidiMap implements Serializable {
|
||||||
|
|
||||||
/** Ensure serialization compatability */
|
/** Ensure serialization compatibility */
|
||||||
private static final long serialVersionUID = 721969328361808L;
|
private static final long serialVersionUID = 721969328361808L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bidimap/DualTreeBidiMap.java,v 1.9 2004/01/05 21:46:49 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bidimap/DualTreeBidiMap.java,v 1.10 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -88,7 +88,7 @@ import org.apache.commons.collections.map.AbstractSortedMapDecorator;
|
||||||
* not store each object twice, which can save on memory use.
|
* not store each object twice, which can save on memory use.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Id: DualTreeBidiMap.java,v 1.9 2004/01/05 21:46:49 scolebourne Exp $
|
* @version $Id: DualTreeBidiMap.java,v 1.10 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
*
|
*
|
||||||
* @author Matthew Hawthorne
|
* @author Matthew Hawthorne
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
|
@ -96,7 +96,7 @@ import org.apache.commons.collections.map.AbstractSortedMapDecorator;
|
||||||
public class DualTreeBidiMap
|
public class DualTreeBidiMap
|
||||||
extends AbstractDualBidiMap implements SortedBidiMap, Serializable {
|
extends AbstractDualBidiMap implements SortedBidiMap, Serializable {
|
||||||
|
|
||||||
/** Ensure serialization compatability */
|
/** Ensure serialization compatibility */
|
||||||
private static final long serialVersionUID = 721969328361809L;
|
private static final long serialVersionUID = 721969328361809L;
|
||||||
/** The comparator to use */
|
/** The comparator to use */
|
||||||
protected final Comparator comparator;
|
protected final Comparator comparator;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/buffer/PriorityBuffer.java,v 1.1 2004/01/02 02:14:29 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/buffer/PriorityBuffer.java,v 1.2 2004/01/08 22:37:31 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -92,7 +92,7 @@ import org.apache.commons.collections.BufferUnderflowException;
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0 (previously BinaryHeap v1.0)
|
* @since Commons Collections 3.0 (previously BinaryHeap v1.0)
|
||||||
* @version $Revision: 1.1 $ $Date: 2004/01/02 02:14:29 $
|
* @version $Revision: 1.2 $ $Date: 2004/01/08 22:37:31 $
|
||||||
*
|
*
|
||||||
* @author Peter Donald
|
* @author Peter Donald
|
||||||
* @author Ram Chidambaram
|
* @author Ram Chidambaram
|
||||||
|
@ -341,7 +341,7 @@ public class PriorityBuffer extends AbstractCollection implements Buffer {
|
||||||
/**
|
/**
|
||||||
* Percolates element down heap from the position given by the index.
|
* Percolates element down heap from the position given by the index.
|
||||||
* <p>
|
* <p>
|
||||||
* Assumes it is a mimimum heap.
|
* Assumes it is a minimum heap.
|
||||||
*
|
*
|
||||||
* @param index the index for the element
|
* @param index the index for the element
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/comparators/NullComparator.java,v 1.9 2003/10/09 20:44:32 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/comparators/NullComparator.java,v 1.10 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
*
|
*
|
||||||
|
@ -64,7 +64,7 @@ import java.util.Comparator;
|
||||||
* other objects.
|
* other objects.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 2.0
|
* @since Commons Collections 2.0
|
||||||
* @version $Revision: 1.9 $ $Date: 2003/10/09 20:44:32 $
|
* @version $Revision: 1.10 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Michael A. Smith
|
* @author Michael A. Smith
|
||||||
*/
|
*/
|
||||||
|
@ -125,7 +125,7 @@ public class NullComparator implements Comparator, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
* any non-<code>null</code> object it is compared with. When comparing
|
||||||
* two non-<code>null</code> objects, the specified {@link Comparator} is
|
* two non-<code>null</code> objects, the specified {@link Comparator} is
|
||||||
* used.
|
* used.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/functors/ChainedClosure.java,v 1.1 2003/11/23 17:01:35 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/functors/ChainedClosure.java,v 1.2 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -64,10 +64,10 @@ import java.util.Iterator;
|
||||||
import org.apache.commons.collections.Closure;
|
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
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.1 $ $Date: 2003/11/23 17:01:35 $
|
* @version $Revision: 1.2 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/functors/ChainedTransformer.java,v 1.2 2004/01/02 01:36:51 psteitz Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/functors/ChainedTransformer.java,v 1.3 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -64,10 +64,10 @@ import java.util.Iterator;
|
||||||
import org.apache.commons.collections.Transformer;
|
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
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.2 $ $Date: 2004/01/02 01:36:51 $
|
* @version $Revision: 1.3 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/functors/StringValueTransformer.java,v 1.1 2003/11/23 23:25:33 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/functors/StringValueTransformer.java,v 1.2 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -62,10 +62,10 @@ import java.io.Serializable;
|
||||||
import org.apache.commons.collections.Transformer;
|
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
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.1 $ $Date: 2003/11/23 23:25:33 $
|
* @version $Revision: 1.2 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ArrayIterator.java,v 1.8 2003/12/01 22:49:00 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ArrayIterator.java,v 1.9 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -74,7 +74,7 @@ import org.apache.commons.collections.ResettableIterator;
|
||||||
* the iterator back to the start if required.
|
* the iterator back to the start if required.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 1.0
|
* @since Commons Collections 1.0
|
||||||
* @version $Revision: 1.8 $ $Date: 2003/12/01 22:49:00 $
|
* @version $Revision: 1.9 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author James Strachan
|
* @author James Strachan
|
||||||
* @author Mauricio S. Moura
|
* @author Mauricio S. Moura
|
||||||
|
@ -164,7 +164,7 @@ public class ArrayIterator implements ResettableIterator {
|
||||||
* Checks whether the index is valid or not.
|
* Checks whether the index is valid or not.
|
||||||
*
|
*
|
||||||
* @param bound the index to check
|
* @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
|
* @throws IndexOutOfBoundsException if the index is invalid
|
||||||
*/
|
*/
|
||||||
protected void checkBound(final int bound, final String type ) {
|
protected void checkBound(final int bound, final String type ) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/IteratorChain.java,v 1.9 2004/01/08 22:26:07 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/IteratorChain.java,v 1.10 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -68,7 +68,7 @@ import org.apache.commons.collections.list.UnmodifiableList;
|
||||||
/**
|
/**
|
||||||
* An IteratorChain is an Iterator that wraps a number of Iterators.
|
* An IteratorChain is an Iterator that wraps a number of Iterators.
|
||||||
* <p>
|
* <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
|
* When any method from the Iterator interface is called, the IteratorChain
|
||||||
* will delegate to a single underlying Iterator. The IteratorChain will
|
* will delegate to a single underlying Iterator. The IteratorChain will
|
||||||
* invoke the Iterators in sequence until all Iterators are exhausted.
|
* invoke the Iterators in sequence until all Iterators are exhausted.
|
||||||
|
@ -85,7 +85,7 @@ import org.apache.commons.collections.list.UnmodifiableList;
|
||||||
* iterators. In this case the class will function as an empty iterator.
|
* iterators. In this case the class will function as an empty iterator.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 2.1
|
* @since Commons Collections 2.1
|
||||||
* @version $Revision: 1.9 $ $Date: 2004/01/08 22:26:07 $
|
* @version $Revision: 1.10 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Morgan Delagrange
|
* @author Morgan Delagrange
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableIterator.java,v 1.2 2003/12/03 12:27:37 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableIterator.java,v 1.3 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -65,7 +65,7 @@ import org.apache.commons.collections.Unmodifiable;
|
||||||
* Decorates an iterator such that it cannot be modified.
|
* Decorates an iterator such that it cannot be modified.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.2 $ $Date: 2003/12/03 12:27:37 $
|
* @version $Revision: 1.3 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
@ -80,7 +80,7 @@ public final class UnmodifiableIterator implements Iterator, Unmodifiable {
|
||||||
* <p>
|
* <p>
|
||||||
* If the iterator is already unmodifiable it is returned directly.
|
* 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
|
* @throws IllegalArgumentException if the iterator is null
|
||||||
*/
|
*/
|
||||||
public static Iterator decorate(Iterator iterator) {
|
public static Iterator decorate(Iterator iterator) {
|
||||||
|
@ -97,7 +97,7 @@ public final class UnmodifiableIterator implements Iterator, Unmodifiable {
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param iterator the iterator to decoarate
|
* @param iterator the iterator to decorate
|
||||||
*/
|
*/
|
||||||
private UnmodifiableIterator(Iterator iterator) {
|
private UnmodifiableIterator(Iterator iterator) {
|
||||||
super();
|
super();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableListIterator.java,v 1.2 2003/12/03 12:27:37 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableListIterator.java,v 1.3 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -65,7 +65,7 @@ import org.apache.commons.collections.Unmodifiable;
|
||||||
* Decorates a list iterator such that it cannot be modified.
|
* Decorates a list iterator such that it cannot be modified.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.2 $ $Date: 2003/12/03 12:27:37 $
|
* @version $Revision: 1.3 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
@ -78,7 +78,7 @@ public final class UnmodifiableListIterator implements ListIterator, Unmodifiabl
|
||||||
/**
|
/**
|
||||||
* Decorates the specified iterator such that it cannot be modified.
|
* 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
|
* @throws IllegalArgumentException if the iterator is null
|
||||||
*/
|
*/
|
||||||
public static ListIterator decorate(ListIterator iterator) {
|
public static ListIterator decorate(ListIterator iterator) {
|
||||||
|
@ -95,7 +95,7 @@ public final class UnmodifiableListIterator implements ListIterator, Unmodifiabl
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param iterator the iterator to decoarate
|
* @param iterator the iterator to decorate
|
||||||
*/
|
*/
|
||||||
private UnmodifiableListIterator(ListIterator iterator) {
|
private UnmodifiableListIterator(ListIterator iterator) {
|
||||||
super();
|
super();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableMapIterator.java,v 1.4 2003/12/03 12:27:37 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableMapIterator.java,v 1.5 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -64,7 +64,7 @@ import org.apache.commons.collections.Unmodifiable;
|
||||||
* Decorates a map iterator such that it cannot be modified.
|
* Decorates a map iterator such that it cannot be modified.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.4 $ $Date: 2003/12/03 12:27:37 $
|
* @version $Revision: 1.5 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
@ -77,7 +77,7 @@ public final class UnmodifiableMapIterator implements MapIterator, Unmodifiable
|
||||||
/**
|
/**
|
||||||
* Decorates the specified iterator such that it cannot be modified.
|
* 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
|
* @throws IllegalArgumentException if the iterator is null
|
||||||
*/
|
*/
|
||||||
public static MapIterator decorate(MapIterator iterator) {
|
public static MapIterator decorate(MapIterator iterator) {
|
||||||
|
@ -94,7 +94,7 @@ public final class UnmodifiableMapIterator implements MapIterator, Unmodifiable
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param iterator the iterator to decoarate
|
* @param iterator the iterator to decorate
|
||||||
*/
|
*/
|
||||||
private UnmodifiableMapIterator(MapIterator iterator) {
|
private UnmodifiableMapIterator(MapIterator iterator) {
|
||||||
super();
|
super();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java,v 1.3 2003/12/03 12:27:37 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java,v 1.4 2004/01/08 22:37:29 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -64,7 +64,7 @@ import org.apache.commons.collections.Unmodifiable;
|
||||||
* Decorates an ordered map iterator such that it cannot be modified.
|
* Decorates an ordered map iterator such that it cannot be modified.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.3 $ $Date: 2003/12/03 12:27:37 $
|
* @version $Revision: 1.4 $ $Date: 2004/01/08 22:37:29 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
@ -77,7 +77,7 @@ public final class UnmodifiableOrderedMapIterator implements OrderedMapIterator,
|
||||||
/**
|
/**
|
||||||
* Decorates the specified iterator such that it cannot be modified.
|
* 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
|
* @throws IllegalArgumentException if the iterator is null
|
||||||
*/
|
*/
|
||||||
public static OrderedMapIterator decorate(OrderedMapIterator iterator) {
|
public static OrderedMapIterator decorate(OrderedMapIterator iterator) {
|
||||||
|
@ -94,7 +94,7 @@ public final class UnmodifiableOrderedMapIterator implements OrderedMapIterator,
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param iterator the iterator to decoarate
|
* @param iterator the iterator to decorate
|
||||||
*/
|
*/
|
||||||
private UnmodifiableOrderedMapIterator(OrderedMapIterator iterator) {
|
private UnmodifiableOrderedMapIterator(OrderedMapIterator iterator) {
|
||||||
super();
|
super();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/keyvalue/AbstractMapEntry.java,v 1.1 2003/12/05 20:23:56 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/keyvalue/AbstractMapEntry.java,v 1.2 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -63,7 +63,7 @@ import java.util.Map;
|
||||||
* Abstract Pair class to assist with creating correct Map Entry implementations.
|
* Abstract Pair class to assist with creating correct Map Entry implementations.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.1 $ $Date: 2003/12/05 20:23:56 $
|
* @version $Revision: 1.2 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author James Strachan
|
* @author James Strachan
|
||||||
* @author Michael A. Smith
|
* @author Michael A. Smith
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/keyvalue/DefaultKeyValue.java,v 1.1 2003/12/05 20:23:56 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/keyvalue/DefaultKeyValue.java,v 1.2 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -68,7 +68,7 @@ import org.apache.commons.collections.KeyValue;
|
||||||
* itself as a key or value.
|
* itself as a key or value.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.1 $ $Date: 2003/12/05 20:23:56 $
|
* @version $Revision: 1.2 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author James Strachan
|
* @author James Strachan
|
||||||
* @author Michael A. Smith
|
* @author Michael A. Smith
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/keyvalue/MultiKey.java,v 1.1 2003/12/05 20:23:56 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/keyvalue/MultiKey.java,v 1.2 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -69,7 +69,7 @@ import java.util.Arrays;
|
||||||
* can be used instead by creating an instance passing in the key and locale.
|
* can be used instead by creating an instance passing in the key and locale.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.1 $ $Date: 2003/12/05 20:23:56 $
|
* @version $Revision: 1.2 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Howard Lewis Ship
|
* @author Howard Lewis Ship
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java,v 1.1 2003/12/05 20:23:56 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java,v 1.2 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -68,7 +68,7 @@ import org.apache.commons.collections.KeyValue;
|
||||||
* map, however this will probably mess up any iterators.
|
* map, however this will probably mess up any iterators.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.1 $ $Date: 2003/12/05 20:23:56 $
|
* @version $Revision: 1.2 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/list/AbstractLinkedList.java,v 1.5 2003/12/29 01:04:44 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/list/AbstractLinkedList.java,v 1.6 2004/01/08 22:37:31 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -80,7 +80,7 @@ import org.apache.commons.collections.OrderedIterator;
|
||||||
* is here.
|
* is here.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.5 $ $Date: 2003/12/29 01:04:44 $
|
* @version $Revision: 1.6 $ $Date: 2004/01/08 22:37:31 $
|
||||||
*
|
*
|
||||||
* @author Rich Dougherty
|
* @author Rich Dougherty
|
||||||
* @author Phil Steitz
|
* @author Phil Steitz
|
||||||
|
@ -701,7 +701,7 @@ public abstract class AbstractLinkedList implements List {
|
||||||
* #previous()}. Set to <code>null</code> if {@link #next()} or {@link
|
* #previous()}. Set to <code>null</code> if {@link #next()} or {@link
|
||||||
* #previous()} haven't been called, or if the node has been removed
|
* #previous()} haven't been called, or if the node has been removed
|
||||||
* with {@link #remove()} or a new node added with {@link #add(Object)}.
|
* 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.
|
* this behaviour.
|
||||||
*/
|
*/
|
||||||
protected Node current;
|
protected Node current;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/list/CursorableLinkedList.java,v 1.2 2003/12/29 00:38:08 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/list/CursorableLinkedList.java,v 1.3 2004/01/08 22:37:31 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -84,7 +84,7 @@ import java.util.ListIterator;
|
||||||
* with changes to the iterator. Note that the {@link #iterator()} method and
|
* with changes to the iterator. Note that the {@link #iterator()} method and
|
||||||
* sublists do <b>not</b> provide this cursor behaviour.
|
* sublists do <b>not</b> provide this cursor behaviour.
|
||||||
* <p>
|
* <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
|
* 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>.
|
* 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
|
* For most purposes, simply modify the iterator and list at will, and then let
|
||||||
|
@ -94,7 +94,7 @@ import java.util.ListIterator;
|
||||||
*
|
*
|
||||||
* @see java.util.LinkedList
|
* @see java.util.LinkedList
|
||||||
* @since Commons Collections 1.0
|
* @since Commons Collections 1.0
|
||||||
* @version $Revision: 1.2 $ $Date: 2003/12/29 00:38:08 $
|
* @version $Revision: 1.3 $ $Date: 2004/01/08 22:37:31 $
|
||||||
*
|
*
|
||||||
* @author Rodney Waldhoff
|
* @author Rodney Waldhoff
|
||||||
* @author Janek Bogucki
|
* @author Janek Bogucki
|
||||||
|
@ -103,7 +103,7 @@ import java.util.ListIterator;
|
||||||
*/
|
*/
|
||||||
public class CursorableLinkedList extends AbstractLinkedList implements Serializable {
|
public class CursorableLinkedList extends AbstractLinkedList implements Serializable {
|
||||||
|
|
||||||
/** Ensure serialization compatability */
|
/** Ensure serialization compatibility */
|
||||||
private static final long serialVersionUID = 8836393098519411393L;
|
private static final long serialVersionUID = 8836393098519411393L;
|
||||||
|
|
||||||
/** A list of the cursor currently open on this list */
|
/** A list of the cursor currently open on this list */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/list/LazyList.java,v 1.1 2003/11/16 00:05:47 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/list/LazyList.java,v 1.2 2004/01/08 22:37:31 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -89,7 +89,7 @@ import org.apache.commons.collections.Factory;
|
||||||
* and third element are all set to <code>null</code>.
|
* and third element are all set to <code>null</code>.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.1 $ $Date: 2003/11/16 00:05:47 $
|
* @version $Revision: 1.2 $ $Date: 2004/01/08 22:37:31 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
* @author Arron Bates
|
* @author Arron Bates
|
||||||
|
@ -133,7 +133,7 @@ public class LazyList extends AbstractListDecorator {
|
||||||
* <p>
|
* <p>
|
||||||
* If the requested index is greater than the current size, the list will
|
* 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.
|
* 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.
|
* placeholder that is replaced with a factory object when requested.
|
||||||
*
|
*
|
||||||
* @param index the index to retrieve
|
* @param index the index to retrieve
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/AbstractHashedMap.java,v 1.8 2004/01/05 22:04:19 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/AbstractHashedMap.java,v 1.9 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -88,7 +88,7 @@ import org.apache.commons.collections.MapIterator;
|
||||||
* need for unusual subclasses is here.
|
* need for unusual subclasses is here.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.8 $ $Date: 2004/01/05 22:04:19 $
|
* @version $Revision: 1.9 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author java util HashMap
|
* @author java util HashMap
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
|
@ -142,13 +142,13 @@ public class AbstractHashedMap implements IterableMap {
|
||||||
*
|
*
|
||||||
* @param initialCapacity the initial capacity, must be a power of two
|
* @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 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();
|
super();
|
||||||
this.loadFactor = loadFactor;
|
this.loadFactor = loadFactor;
|
||||||
this.data = new HashEntry[initialCapacity];
|
this.data = new HashEntry[initialCapacity];
|
||||||
this.threshold = threshhold;
|
this.threshold = threshold;
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -693,7 +693,7 @@ public class AbstractHashedMap implements IterableMap {
|
||||||
* A MapIterator returns the keys in the map. It also provides convenient
|
* A MapIterator returns the keys in the map. It also provides convenient
|
||||||
* methods to get the key and value, and set the value.
|
* methods to get the key and value, and set the value.
|
||||||
* It avoids the need to create an entrySet/keySet/values object.
|
* 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
|
* @return the map iterator
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/AbstractLinkedMap.java,v 1.6 2004/01/05 22:04:19 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/AbstractLinkedMap.java,v 1.7 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -98,7 +98,7 @@ import org.apache.commons.collections.ResettableIterator;
|
||||||
* methods exposed.
|
* methods exposed.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.6 $ $Date: 2004/01/05 22:04:19 $
|
* @version $Revision: 1.7 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author java util LinkedHashMap
|
* @author java util LinkedHashMap
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
|
@ -120,10 +120,10 @@ public class AbstractLinkedMap extends AbstractHashedMap implements OrderedMap {
|
||||||
*
|
*
|
||||||
* @param initialCapacity the initial capacity, must be a power of two
|
* @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 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) {
|
protected AbstractLinkedMap(int initialCapacity, float loadFactor, int threshold) {
|
||||||
super(initialCapacity, loadFactor, threshhold);
|
super(initialCapacity, loadFactor, threshold);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -341,7 +341,6 @@ public class AbstractLinkedMap extends AbstractHashedMap implements OrderedMap {
|
||||||
* A MapIterator returns the keys in the map. It also provides convenient
|
* A MapIterator returns the keys in the map. It also provides convenient
|
||||||
* methods to get the key and value, and set the value.
|
* methods to get the key and value, and set the value.
|
||||||
* It avoids the need to create an entrySet/keySet/values object.
|
* It avoids the need to create an entrySet/keySet/values object.
|
||||||
* It also avoids creating the Mep Entry object.
|
|
||||||
*
|
*
|
||||||
* @return the map iterator
|
* @return the map iterator
|
||||||
*/
|
*/
|
||||||
|
@ -359,7 +358,6 @@ public class AbstractLinkedMap extends AbstractHashedMap implements OrderedMap {
|
||||||
* A MapIterator returns the keys in the map. It also provides convenient
|
* A MapIterator returns the keys in the map. It also provides convenient
|
||||||
* methods to get the key and value, and set the value.
|
* methods to get the key and value, and set the value.
|
||||||
* It avoids the need to create an entrySet/keySet/values object.
|
* It avoids the need to create an entrySet/keySet/values object.
|
||||||
* It also avoids creating the Mep Entry object.
|
|
||||||
*
|
*
|
||||||
* @return the map iterator
|
* @return the map iterator
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/CompositeMap.java,v 1.4 2004/01/05 22:04:19 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/CompositeMap.java,v 1.5 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -74,7 +74,7 @@ import org.apache.commons.collections.set.CompositeSet;
|
||||||
* strategy is provided then add and remove are unsupported.
|
* strategy is provided then add and remove are unsupported.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.4 $ $Date: 2004/01/05 22:04:19 $
|
* @version $Revision: 1.5 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Brian McCallister
|
* @author Brian McCallister
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/Flat3Map.java,v 1.10 2004/01/05 22:04:19 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/Flat3Map.java,v 1.11 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -98,7 +98,7 @@ import org.apache.commons.collections.ResettableIterator;
|
||||||
* Do not use <code>Flat3Map</code> if the size is likely to grow beyond 3.
|
* Do not use <code>Flat3Map</code> if the size is likely to grow beyond 3.
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.10 $ $Date: 2004/01/05 22:04:19 $
|
* @version $Revision: 1.11 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/HashedMap.java,v 1.12 2004/01/05 22:04:19 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/HashedMap.java,v 1.13 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -67,12 +67,12 @@ import java.util.Map;
|
||||||
* A <code>Map</code> implementation that is a general purpose alternative
|
* A <code>Map</code> implementation that is a general purpose alternative
|
||||||
* to <code>HashMap</code>.
|
* to <code>HashMap</code>.
|
||||||
* <p>
|
* <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}
|
* {@link org.apache.commons.collections.MapIterator MapIterator}
|
||||||
* functionality and many methods for subclassing.
|
* functionality and many methods for subclassing.
|
||||||
* <p>
|
* <p>
|
||||||
* @since Commons Collections 3.0
|
* @since Commons Collections 3.0
|
||||||
* @version $Revision: 1.12 $ $Date: 2004/01/05 22:04:19 $
|
* @version $Revision: 1.13 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/StaticBucketMap.java,v 1.8 2004/01/05 22:15:14 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/StaticBucketMap.java,v 1.9 2004/01/08 22:37:30 scolebourne Exp $
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
|
@ -132,7 +132,7 @@ import org.apache.commons.collections.KeyValue;
|
||||||
* operations will affect the map.<p>
|
* operations will affect the map.<p>
|
||||||
*
|
*
|
||||||
* @since Commons Collections 3.0 (previously in main package v2.1)
|
* @since Commons Collections 3.0 (previously in main package v2.1)
|
||||||
* @version $Revision: 1.8 $ $Date: 2004/01/05 22:15:14 $
|
* @version $Revision: 1.9 $ $Date: 2004/01/08 22:37:30 $
|
||||||
*
|
*
|
||||||
* @author Berin Loritsch
|
* @author Berin Loritsch
|
||||||
* @author Gerhard Froehlich
|
* @author Gerhard Froehlich
|
||||||
|
|
Loading…
Reference in New Issue