commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pj...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/primitives AbstractIntArrayList.java AbstractLongArrayList.java AbstractShortArrayList.java AbstractIntList.java AbstractLongList.java AbstractShortList.java IntArrayList.java LongArrayList.java ShortArrayList.java UnsignedByteArrayList.java UnsignedIntArrayList.java UnsignedShortArrayList.java
Date Wed, 21 Aug 2002 23:54:18 GMT
pjack       2002/08/21 16:54:18

  Modified:    collections/src/java/org/apache/commons/collections/primitives
                        AbstractIntList.java AbstractLongList.java
                        AbstractShortList.java IntArrayList.java
                        LongArrayList.java ShortArrayList.java
                        UnsignedByteArrayList.java
                        UnsignedIntArrayList.java
                        UnsignedShortArrayList.java
  Added:       collections/src/java/org/apache/commons/collections/primitives
                        AbstractIntArrayList.java
                        AbstractLongArrayList.java
                        AbstractShortArrayList.java
  Log:
  Placed Abstract*ArrayList layer under Abstract*List layer.  Erased
  Serializable declarations from all abstract superclasses (but kept it in
  all concrete implementations).
  
  Revision  Changes    Path
  1.2       +5 -28     jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractIntList.java
  
  Index: AbstractIntList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractIntList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractIntList.java	19 Aug 2002 21:19:03 -0000	1.1
  +++ AbstractIntList.java	21 Aug 2002 23:54:18 -0000	1.2
  @@ -74,20 +74,11 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public abstract class AbstractIntList extends AbstractList implements List, Serializable
{
  +public abstract class AbstractIntList extends AbstractList {
   
       //------------------------------------------------------ Abstract Accessors
   
       /**
  -     *  Returns the maximum size the list can reach before the array 
  -     *  is resized.
  -     *
  -     *  @return the maximum size the list can reach before the array is resized
  -     */
  -    abstract public int capacity();
  -
  -
  -    /**
        *  Returns the number of <Code>int</Code> elements currently in this
        *  list.
        *
  @@ -267,20 +258,6 @@
        *  Removes all <Code>int</Code> values from this list.
        */
       abstract public void clear();
  -
  -    /**
  -     *  Ensures that the length of the internal <Code>int</Code> array is
  -     *  at list the given value.
  -     *
  -     *  @param mincap  the minimum capcity for this list
  -     */
  -    abstract public void ensureCapacity(int mincap);
  -
  -    /**
  -     *  Resizes the internal array such that {@link #capacity()} is equal
  -     *  to {@link #size()}.
  -     */
  -    abstract public void trimToSize();
   
       //--------------------------------------------------------------- Modifiers
       
  
  
  
  1.2       +5 -27     jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractLongList.java
  
  Index: AbstractLongList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractLongList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractLongList.java	19 Aug 2002 21:19:03 -0000	1.1
  +++ AbstractLongList.java	21 Aug 2002 23:54:18 -0000	1.2
  @@ -74,19 +74,11 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public abstract class AbstractLongList extends AbstractList implements List, Serializable
{
  +public abstract class AbstractLongList extends AbstractList {
   
       //------------------------------------------------------ Abstract Accessors
       
       /**
  -     *  Returns the maximum size the list can reach before the array 
  -     *  is resized.
  -     *
  -     *  @return the maximum size the list can reach before the array is resized
  -     */
  -    abstract public int capacity();
  -
  -    /**
        *  Returns the number of <Code>long</Code> elements currently in this
        *  list.
        *
  @@ -259,20 +251,6 @@
        *  Removes all <Code>long</Code> values from this list.
        */
       abstract public void clear();
  -
  -    /**
  -     *  Ensures that the length of the internal <Code>long</Code> array is
  -     *  at list the given value.
  -     *
  -     *  @param mincap  the minimum capcity for this list
  -     */
  -    abstract public void ensureCapacity(int mincap);
  -
  -    /**
  -     *  Resizes the internal array such that {@link #capacity()} is equal
  -     *  to {@link #size()}.
  -     */
  -    abstract public void trimToSize();
   
       //--------------------------------------------------------------- Modifiers
       
  
  
  
  1.2       +5 -27     jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractShortList.java
  
  Index: AbstractShortList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractShortList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractShortList.java	19 Aug 2002 21:19:03 -0000	1.1
  +++ AbstractShortList.java	21 Aug 2002 23:54:18 -0000	1.2
  @@ -74,19 +74,11 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public abstract class AbstractShortList extends AbstractList implements List, Serializable
{
  +public abstract class AbstractShortList extends AbstractList {
   
       //------------------------------------------------------ Abstract Accessors
       
       /**
  -     *  Returns the maximum size the list can reach before the array 
  -     *  is resized.
  -     *
  -     *  @return the maximum size the list can reach before the array is resized
  -     */
  -    abstract public int capacity();
  -
  -    /**
        *  Returns the number of <Code>short</Code> elements currently in this
        *  list.
        *
  @@ -259,20 +251,6 @@
        *  Removes all <Code>short</Code> values from this list.
        */
       abstract public void clear();
  -
  -    /**
  -     *  Ensures that the length of the internal <Code>short</Code> array is
  -     *  at list the given value.
  -     *
  -     *  @param mincap  the minimum capcity for this list
  -     */
  -    abstract public void ensureCapacity(int mincap);
  -
  -    /**
  -     *  Resizes the internal array such that {@link #capacity()} is equal
  -     *  to {@link #size()}.
  -     */
  -    abstract public void trimToSize();
   
       //--------------------------------------------------------------- Modifiers
       
  
  
  
  1.4       +5 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/IntArrayList.java
  
  Index: IntArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/IntArrayList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IntArrayList.java	19 Aug 2002 21:19:03 -0000	1.3
  +++ IntArrayList.java	21 Aug 2002 23:54:18 -0000	1.4
  @@ -77,7 +77,7 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public class IntArrayList extends AbstractIntList implements List, Serializable {
  +public class IntArrayList extends AbstractIntArrayList implements Serializable {
   
       //------------------------------------------------------------ Constructors  
   
  
  
  
  1.4       +5 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/LongArrayList.java
  
  Index: LongArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/LongArrayList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LongArrayList.java	19 Aug 2002 21:19:03 -0000	1.3
  +++ LongArrayList.java	21 Aug 2002 23:54:18 -0000	1.4
  @@ -77,7 +77,7 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public class LongArrayList extends AbstractLongList implements List, Serializable {
  +public class LongArrayList extends AbstractLongArrayList implements Serializable {
   
       //------------------------------------------------------------ Constructors
       
  
  
  
  1.4       +5 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/ShortArrayList.java
  
  Index: ShortArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/ShortArrayList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ShortArrayList.java	19 Aug 2002 21:19:03 -0000	1.3
  +++ ShortArrayList.java	21 Aug 2002 23:54:18 -0000	1.4
  @@ -77,7 +77,7 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public class ShortArrayList extends AbstractShortList implements List, Serializable {
  +public class ShortArrayList extends AbstractShortArrayList implements Serializable {
   
       //------------------------------------------------------------ Constructors
       
  
  
  
  1.4       +5 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/UnsignedByteArrayList.java
  
  Index: UnsignedByteArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/UnsignedByteArrayList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- UnsignedByteArrayList.java	19 Aug 2002 21:19:03 -0000	1.3
  +++ UnsignedByteArrayList.java	21 Aug 2002 23:54:18 -0000	1.4
  @@ -79,7 +79,7 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public class UnsignedByteArrayList extends AbstractShortList implements List, Serializable
{
  +public class UnsignedByteArrayList extends AbstractShortArrayList implements Serializable
{
   
       //------------------------------------------------------------ Constructors
       
  
  
  
  1.4       +5 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/UnsignedIntArrayList.java
  
  Index: UnsignedIntArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/UnsignedIntArrayList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- UnsignedIntArrayList.java	19 Aug 2002 21:19:03 -0000	1.3
  +++ UnsignedIntArrayList.java	21 Aug 2002 23:54:18 -0000	1.4
  @@ -79,7 +79,7 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public class UnsignedIntArrayList extends AbstractLongList implements List, Serializable
{
  +public class UnsignedIntArrayList extends AbstractLongArrayList implements Serializable
{
   
       //------------------------------------------------------------ Constructors
       
  
  
  
  1.4       +5 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java
  
  Index: UnsignedShortArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- UnsignedShortArrayList.java	19 Aug 2002 21:19:03 -0000	1.3
  +++ UnsignedShortArrayList.java	21 Aug 2002 23:54:18 -0000	1.4
  @@ -79,7 +79,7 @@
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff 
    */
  -public class UnsignedShortArrayList extends AbstractIntList implements List, Serializable
{
  +public class UnsignedShortArrayList extends AbstractIntArrayList implements Serializable
{
   
       //------------------------------------------------------------ Constructors
       
  
  
  
  1.4       +2 -259    jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractIntArrayList.java
  
  
  
  
  1.4       +2 -258    jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractLongArrayList.java
  
  
  
  
  1.4       +2 -258    jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/AbstractShortArrayList.java
  
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message