From cddf8c5c663b450c68d86fdeb7d24cd1a309deb5 Mon Sep 17 00:00:00 2001 From: pjack Date: Mon, 19 Aug 2002 21:19:03 +0000 Subject: [PATCH] Renamed AbstractIntArrayList, AbstractShortArrayList, AbstractLongArrayList to AbstractIntList, AbstractShortList, AbstractLongList. New names follow general naming pattern in Collections Framework, and anticipate later IntList, ShortList and LongList interfaces. Recommended by Jonathan Carlson (joncrlsn2 at yahoo dot com). git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130802 13f79535-47bb-0310-9956-ffa450edef68 --- ...actIntArrayList.java => AbstractIntList.java} | 10 +++++----- ...tLongArrayList.java => AbstractLongList.java} | 10 +++++----- ...hortArrayList.java => AbstractShortList.java} | 10 +++++----- .../collections/primitives/IntArrayList.java | 10 +++++----- .../collections/primitives/LongArrayList.java | 10 +++++----- .../collections/primitives/ShortArrayList.java | 10 +++++----- .../primitives/UnsignedByteArrayList.java | 10 +++++----- .../primitives/UnsignedIntArrayList.java | 10 +++++----- .../primitives/UnsignedShortArrayList.java | 10 +++++----- .../primitives/TestAbstractIntArrayList.java | 16 ++++++++-------- .../primitives/TestAbstractLongArrayList.java | 14 +++++++------- .../primitives/TestAbstractShortArrayList.java | 14 +++++++------- .../collections/primitives/TestIntArrayList.java | 10 +++++----- .../primitives/TestLongArrayList.java | 10 +++++----- .../primitives/TestShortArrayList.java | 10 +++++----- .../primitives/TestUnsignedByteArrayList.java | 10 +++++----- .../primitives/TestUnsignedIntArrayList.java | 10 +++++----- .../primitives/TestUnsignedShortArrayList.java | 10 +++++----- 18 files changed, 97 insertions(+), 97 deletions(-) rename src/java/org/apache/commons/collections/primitives/{AbstractIntArrayList.java => AbstractIntList.java} (97%) rename src/java/org/apache/commons/collections/primitives/{AbstractLongArrayList.java => AbstractLongList.java} (97%) rename src/java/org/apache/commons/collections/primitives/{AbstractShortArrayList.java => AbstractShortList.java} (97%) diff --git a/src/java/org/apache/commons/collections/primitives/AbstractIntArrayList.java b/src/java/org/apache/commons/collections/primitives/AbstractIntList.java similarity index 97% rename from src/java/org/apache/commons/collections/primitives/AbstractIntArrayList.java rename to src/java/org/apache/commons/collections/primitives/AbstractIntList.java index 92bb3e8a8..4eda73299 100644 --- a/src/java/org/apache/commons/collections/primitives/AbstractIntArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/AbstractIntList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractIntArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractIntList.java,v 1.1 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.1 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -71,10 +71,10 @@ import java.util.ListIterator; /** * Abstract base class for lists backed by an int array. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.1 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public abstract class AbstractIntArrayList extends AbstractList implements List, Serializable { +public abstract class AbstractIntList extends AbstractList implements List, Serializable { //------------------------------------------------------ Abstract Accessors diff --git a/src/java/org/apache/commons/collections/primitives/AbstractLongArrayList.java b/src/java/org/apache/commons/collections/primitives/AbstractLongList.java similarity index 97% rename from src/java/org/apache/commons/collections/primitives/AbstractLongArrayList.java rename to src/java/org/apache/commons/collections/primitives/AbstractLongList.java index 54ca16ecb..24d7435ee 100644 --- a/src/java/org/apache/commons/collections/primitives/AbstractLongArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/AbstractLongList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractLongArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractLongList.java,v 1.1 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.1 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -71,10 +71,10 @@ import java.util.ListIterator; /** * Abstract base class for lists backed by a long array. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.1 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public abstract class AbstractLongArrayList extends AbstractList implements List, Serializable { +public abstract class AbstractLongList extends AbstractList implements List, Serializable { //------------------------------------------------------ Abstract Accessors diff --git a/src/java/org/apache/commons/collections/primitives/AbstractShortArrayList.java b/src/java/org/apache/commons/collections/primitives/AbstractShortList.java similarity index 97% rename from src/java/org/apache/commons/collections/primitives/AbstractShortArrayList.java rename to src/java/org/apache/commons/collections/primitives/AbstractShortList.java index 9a9700fbd..682dc77c6 100644 --- a/src/java/org/apache/commons/collections/primitives/AbstractShortArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/AbstractShortList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractShortArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractShortList.java,v 1.1 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.1 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -71,10 +71,10 @@ import java.util.ListIterator; /** * Abstract base class for lists backed by a short array. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.1 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public abstract class AbstractShortArrayList extends AbstractList implements List, Serializable { +public abstract class AbstractShortList extends AbstractList implements List, Serializable { //------------------------------------------------------ Abstract Accessors diff --git a/src/java/org/apache/commons/collections/primitives/IntArrayList.java b/src/java/org/apache/commons/collections/primitives/IntArrayList.java index 39f3caf16..eea192052 100644 --- a/src/java/org/apache/commons/collections/primitives/IntArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/IntArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/IntArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/IntArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -74,10 +74,10 @@ import java.util.ListIterator; /** * A list of int elements. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public class IntArrayList extends AbstractIntArrayList implements List, Serializable { +public class IntArrayList extends AbstractIntList implements List, Serializable { //------------------------------------------------------------ Constructors diff --git a/src/java/org/apache/commons/collections/primitives/LongArrayList.java b/src/java/org/apache/commons/collections/primitives/LongArrayList.java index 0a88e36b3..e22e383e7 100644 --- a/src/java/org/apache/commons/collections/primitives/LongArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/LongArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/LongArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/LongArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -74,10 +74,10 @@ import java.util.ListIterator; /** * A list of long elements. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public class LongArrayList extends AbstractLongArrayList implements List, Serializable { +public class LongArrayList extends AbstractLongList implements List, Serializable { //------------------------------------------------------------ Constructors diff --git a/src/java/org/apache/commons/collections/primitives/ShortArrayList.java b/src/java/org/apache/commons/collections/primitives/ShortArrayList.java index b184103d2..d061fb5b6 100644 --- a/src/java/org/apache/commons/collections/primitives/ShortArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/ShortArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ShortArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ShortArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -74,10 +74,10 @@ import java.util.ListIterator; /** * A list of short elements. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public class ShortArrayList extends AbstractShortArrayList implements List, Serializable { +public class ShortArrayList extends AbstractShortList implements List, Serializable { //------------------------------------------------------------ Constructors diff --git a/src/java/org/apache/commons/collections/primitives/UnsignedByteArrayList.java b/src/java/org/apache/commons/collections/primitives/UnsignedByteArrayList.java index f43ccb2b5..5c54979bb 100644 --- a/src/java/org/apache/commons/collections/primitives/UnsignedByteArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/UnsignedByteArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedByteArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedByteArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -76,10 +76,10 @@ import java.util.ListIterator; * Mutators on this class will reject any short that does not * express an unsigned 8-bit value. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public class UnsignedByteArrayList extends AbstractShortArrayList implements List, Serializable { +public class UnsignedByteArrayList extends AbstractShortList implements List, Serializable { //------------------------------------------------------------ Constructors diff --git a/src/java/org/apache/commons/collections/primitives/UnsignedIntArrayList.java b/src/java/org/apache/commons/collections/primitives/UnsignedIntArrayList.java index 1ae53af5b..192e4c1df 100644 --- a/src/java/org/apache/commons/collections/primitives/UnsignedIntArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/UnsignedIntArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedIntArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedIntArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -76,10 +76,10 @@ import java.util.ListIterator; * Mutators on this class will reject any long that does not * express an unsigned 16-bit value. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public class UnsignedIntArrayList extends AbstractLongArrayList implements List, Serializable { +public class UnsignedIntArrayList extends AbstractLongList implements List, Serializable { //------------------------------------------------------------ Constructors diff --git a/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java b/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java index 3332a85f9..27da8b5e9 100644 --- a/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedShortArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $ - * $Revision: 1.2 $ - * $Date: 2002/08/13 19:41:36 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedShortArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -76,10 +76,10 @@ import java.util.ListIterator; * Mutators on this class will reject any int that does not * express an unsigned 16-bit value. * - * @version $Revision: 1.2 $ $Date: 2002/08/13 19:41:36 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ -public class UnsignedShortArrayList extends AbstractIntArrayList implements List, Serializable { +public class UnsignedShortArrayList extends AbstractIntList implements List, Serializable { //------------------------------------------------------------ Constructors diff --git a/src/test/org/apache/commons/collections/primitives/TestAbstractIntArrayList.java b/src/test/org/apache/commons/collections/primitives/TestAbstractIntArrayList.java index 30cc6bbfc..971159eeb 100644 --- a/src/test/org/apache/commons/collections/primitives/TestAbstractIntArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestAbstractIntArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractIntArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractIntArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -68,7 +68,7 @@ import org.apache.commons.collections.TestList; import java.util.List; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public abstract class TestAbstractIntArrayList extends TestList { @@ -81,7 +81,7 @@ public abstract class TestAbstractIntArrayList extends TestList { //---------------------------------------------------------------- Abstract - abstract protected AbstractIntArrayList createList(); + abstract protected AbstractIntList createList(); //------------------------------------------------------- TestList interface @@ -92,7 +92,7 @@ public abstract class TestAbstractIntArrayList extends TestList { //------------------------------------------------------------------- Tests public void testAddGet() { - AbstractIntArrayList list = createList(); + AbstractIntList list = createList(); for(int i=0;i<1000;i++) { list.addInt(i); } @@ -102,7 +102,7 @@ public abstract class TestAbstractIntArrayList extends TestList { } public void testAddGetLargeValues() { - AbstractIntArrayList list = createList(); + AbstractIntList list = createList(); for(int i=0;i<1000;i++) { int value = ((int)(Short.MAX_VALUE)); value += i; @@ -116,7 +116,7 @@ public abstract class TestAbstractIntArrayList extends TestList { } public void testAddAndShift() { - AbstractIntArrayList list = createList(); + AbstractIntList list = createList(); list.addInt(0, 1); assertEquals("Should have one entry", 1, list.size()); list.addInt(3); diff --git a/src/test/org/apache/commons/collections/primitives/TestAbstractLongArrayList.java b/src/test/org/apache/commons/collections/primitives/TestAbstractLongArrayList.java index d8490d6cb..b98032969 100644 --- a/src/test/org/apache/commons/collections/primitives/TestAbstractLongArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestAbstractLongArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractLongArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractLongArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -68,7 +68,7 @@ import org.apache.commons.collections.TestList; import java.util.List; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public abstract class TestAbstractLongArrayList extends TestList { @@ -81,7 +81,7 @@ public abstract class TestAbstractLongArrayList extends TestList { //---------------------------------------------------------------- Abstract - abstract protected AbstractLongArrayList createList(); + abstract protected AbstractLongList createList(); //------------------------------------------------------- TestList interface @@ -92,7 +92,7 @@ public abstract class TestAbstractLongArrayList extends TestList { //------------------------------------------------------------------- Tests public void testAddGet() { - AbstractLongArrayList list = createList(); + AbstractLongList list = createList(); for(long i=0L;i<1000L;i++) { list.addLong(i); } @@ -102,7 +102,7 @@ public abstract class TestAbstractLongArrayList extends TestList { } public void testAddGetLargeValues() { - AbstractLongArrayList list = createList(); + AbstractLongList list = createList(); for(long i=0L;i<1000L;i++) { long value = ((long)(Integer.MAX_VALUE)); value += i; diff --git a/src/test/org/apache/commons/collections/primitives/TestAbstractShortArrayList.java b/src/test/org/apache/commons/collections/primitives/TestAbstractShortArrayList.java index 15dfbc166..d7b686913 100644 --- a/src/test/org/apache/commons/collections/primitives/TestAbstractShortArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestAbstractShortArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractShortArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractShortArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -68,7 +68,7 @@ import org.apache.commons.collections.TestList; import java.util.List; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public abstract class TestAbstractShortArrayList extends TestList { @@ -81,7 +81,7 @@ public abstract class TestAbstractShortArrayList extends TestList { //---------------------------------------------------------------- Abstract - abstract protected AbstractShortArrayList createList(); + abstract protected AbstractShortList createList(); //------------------------------------------------------- TestList interface @@ -92,7 +92,7 @@ public abstract class TestAbstractShortArrayList extends TestList { //------------------------------------------------------------------- Tests public void testAddGet() { - AbstractShortArrayList list = createList(); + AbstractShortList list = createList(); for(short i=0;i<100;i++) { list.addShort(i); } @@ -102,7 +102,7 @@ public abstract class TestAbstractShortArrayList extends TestList { } public void testAddGetLargeValues() { - AbstractShortArrayList list = createList(); + AbstractShortList list = createList(); for(short i=128;i<256;i++) { list.addShort(i); } diff --git a/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java b/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java index 7e5631fd3..98fa46f44 100644 --- a/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestIntArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestIntArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -67,7 +67,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public class TestIntArrayList extends TestAbstractIntArrayList { @@ -85,7 +85,7 @@ public class TestIntArrayList extends TestAbstractIntArrayList { //---------------------------------------------------------------- Abstract - protected AbstractIntArrayList createList() { + protected AbstractIntList createList() { return new IntArrayList(); } diff --git a/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java b/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java index 1f6b119d6..372da0f5b 100644 --- a/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestLongArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestLongArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -67,7 +67,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public class TestLongArrayList extends TestAbstractLongArrayList { @@ -85,7 +85,7 @@ public class TestLongArrayList extends TestAbstractLongArrayList { //---------------------------------------------------------- Abstract Impls - protected AbstractLongArrayList createList() { + protected AbstractLongList createList() { return new LongArrayList(); } diff --git a/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java b/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java index 1281983bf..a41d81979 100644 --- a/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestShortArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestShortArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -67,7 +67,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public class TestShortArrayList extends TestAbstractShortArrayList { @@ -85,7 +85,7 @@ public class TestShortArrayList extends TestAbstractShortArrayList { //---------------------------------------------------------------- Abstract - protected AbstractShortArrayList createList() { + protected AbstractShortList createList() { return new ShortArrayList(); } diff --git a/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java b/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java index 565f3ec5c..42d1fdcca 100644 --- a/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedByteArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedByteArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -67,7 +67,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public class TestUnsignedByteArrayList extends TestAbstractShortArrayList { @@ -85,7 +85,7 @@ public class TestUnsignedByteArrayList extends TestAbstractShortArrayList { //---------------------------------------------------------------- Abstract - protected AbstractShortArrayList createList() { + protected AbstractShortList createList() { return new UnsignedByteArrayList(); } diff --git a/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java b/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java index 1b6e000ed..bcf661ca8 100644 --- a/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedIntArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedIntArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -67,7 +67,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public class TestUnsignedIntArrayList extends TestAbstractLongArrayList { @@ -85,7 +85,7 @@ public class TestUnsignedIntArrayList extends TestAbstractLongArrayList { //---------------------------------------------------------- Abstract Impls - protected AbstractLongArrayList createList() { + protected AbstractLongList createList() { return new UnsignedIntArrayList(); } diff --git a/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java b/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java index c4ef8fdd4..7d5509cb7 100644 --- a/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedShortArrayList.java,v 1.2 2002/06/21 04:01:31 mas Exp $ - * $Revision: 1.2 $ - * $Date: 2002/06/21 04:01:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedShortArrayList.java,v 1.3 2002/08/19 21:19:03 pjack Exp $ + * $Revision: 1.3 $ + * $Date: 2002/08/19 21:19:03 $ * * ==================================================================== * @@ -67,7 +67,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.2 $ $Date: 2002/06/21 04:01:31 $ + * @version $Revision: 1.3 $ $Date: 2002/08/19 21:19:03 $ * @author Rodney Waldhoff */ public class TestUnsignedShortArrayList extends TestAbstractIntArrayList { @@ -85,7 +85,7 @@ public class TestUnsignedShortArrayList extends TestAbstractIntArrayList { //---------------------------------------------------------------- Abstract - protected AbstractIntArrayList createList() { + protected AbstractIntList createList() { return new UnsignedShortArrayList(); }