You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2003/09/23 01:55:29 UTC

cvs commit: jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection CharCollection.java LongCollection.java IntCollection.java FloatCollection.java ShortCollection.java ByteCollection.java BooleanCollection.java DoubleCollection.java

scolebourne    2003/09/22 16:55:29

  Modified:    primitives/src/java/org/apache/commons/primitive/collection
                        CharCollection.java LongCollection.java
                        IntCollection.java FloatCollection.java
                        ShortCollection.java ByteCollection.java
                        BooleanCollection.java DoubleCollection.java
  Log:
  Javadoc
  
  Revision  Changes    Path
  1.2       +7 -5      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/CharCollection.java
  
  Index: CharCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/CharCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CharCollection.java	20 Sep 2003 23:50:27 -0000	1.1
  +++ CharCollection.java	22 Sep 2003 23:55:29 -0000	1.2
  @@ -106,17 +106,19 @@
   
       /**
        * Copies the elements of this collection into an array at a specified position.
  +     * Previous values in the array are overwritten.
        * <p>
  +     * If the array specified is null a new array is created.
        * If the array specified is large enough, it will be modified.
        * If the array is not large enough, a new array will be created and all
  -     * elements copied before the insertion begins.
  +     * elements copied before the copy begins.
        *
        * @param array  the array to add the elements to
  -     * @param insertionIndex  the position in the array to add the elements to
  -     * @return the array with the inserted collection
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if the index is invalid
        */
  -    char[] toValueArray(char[] array, int insertionIndex);
  +    char[] toValueArray(char[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------
  
  
  
  1.2       +7 -5      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/LongCollection.java
  
  Index: LongCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/LongCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LongCollection.java	20 Sep 2003 23:50:27 -0000	1.1
  +++ LongCollection.java	22 Sep 2003 23:55:29 -0000	1.2
  @@ -106,17 +106,19 @@
   
       /**
        * Copies the elements of this collection into an array at a specified position.
  +     * Previous values in the array are overwritten.
        * <p>
  +     * If the array specified is null a new array is created.
        * If the array specified is large enough, it will be modified.
        * If the array is not large enough, a new array will be created and all
  -     * elements copied before the insertion begins.
  +     * elements copied before the copy begins.
        *
        * @param array  the array to add the elements to
  -     * @param insertionIndex  the position in the array to add the elements to
  -     * @return the array with the inserted collection
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if the index is invalid
        */
  -    long[] toValueArray(long[] array, int insertionIndex);
  +    long[] toValueArray(long[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------
  
  
  
  1.4       +7 -5      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/IntCollection.java
  
  Index: IntCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/IntCollection.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IntCollection.java	20 Sep 2003 23:50:27 -0000	1.3
  +++ IntCollection.java	22 Sep 2003 23:55:29 -0000	1.4
  @@ -106,17 +106,19 @@
   
       /**
        * Copies the elements of this collection into an array at a specified position.
  +     * Previous values in the array are overwritten.
        * <p>
  +     * If the array specified is null a new array is created.
        * If the array specified is large enough, it will be modified.
        * If the array is not large enough, a new array will be created and all
  -     * elements copied before the insertion begins.
  +     * elements copied before the copy begins.
        *
        * @param array  the array to add the elements to
  -     * @param insertionIndex  the position in the array to add the elements to
  -     * @return the array with the inserted collection
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if the index is invalid
        */
  -    int[] toValueArray(int[] array, int insertionIndex);
  +    int[] toValueArray(int[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------
  
  
  
  1.2       +7 -5      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/FloatCollection.java
  
  Index: FloatCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/FloatCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FloatCollection.java	20 Sep 2003 23:50:27 -0000	1.1
  +++ FloatCollection.java	22 Sep 2003 23:55:29 -0000	1.2
  @@ -106,17 +106,19 @@
   
       /**
        * Copies the elements of this collection into an array at a specified position.
  +     * Previous values in the array are overwritten.
        * <p>
  +     * If the array specified is null a new array is created.
        * If the array specified is large enough, it will be modified.
        * If the array is not large enough, a new array will be created and all
  -     * elements copied before the insertion begins.
  +     * elements copied before the copy begins.
        *
        * @param array  the array to add the elements to
  -     * @param insertionIndex  the position in the array to add the elements to
  -     * @return the array with the inserted collection
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if the index is invalid
        */
  -    float[] toValueArray(float[] array, int insertionIndex);
  +    float[] toValueArray(float[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------
  
  
  
  1.2       +7 -5      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/ShortCollection.java
  
  Index: ShortCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/ShortCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ShortCollection.java	20 Sep 2003 23:50:27 -0000	1.1
  +++ ShortCollection.java	22 Sep 2003 23:55:29 -0000	1.2
  @@ -106,17 +106,19 @@
   
       /**
        * Copies the elements of this collection into an array at a specified position.
  +     * Previous values in the array are overwritten.
        * <p>
  +     * If the array specified is null a new array is created.
        * If the array specified is large enough, it will be modified.
        * If the array is not large enough, a new array will be created and all
  -     * elements copied before the insertion begins.
  +     * elements copied before the copy begins.
        *
        * @param array  the array to add the elements to
  -     * @param insertionIndex  the position in the array to add the elements to
  -     * @return the array with the inserted collection
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if the index is invalid
        */
  -    short[] toValueArray(short[] array, int insertionIndex);
  +    short[] toValueArray(short[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------
  
  
  
  1.2       +7 -5      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/ByteCollection.java
  
  Index: ByteCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/ByteCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ByteCollection.java	20 Sep 2003 23:50:27 -0000	1.1
  +++ ByteCollection.java	22 Sep 2003 23:55:29 -0000	1.2
  @@ -106,17 +106,19 @@
   
       /**
        * Copies the elements of this collection into an array at a specified position.
  +     * Previous values in the array are overwritten.
        * <p>
  +     * If the array specified is null a new array is created.
        * If the array specified is large enough, it will be modified.
        * If the array is not large enough, a new array will be created and all
  -     * elements copied before the insertion begins.
  +     * elements copied before the copy begins.
        *
        * @param array  the array to add the elements to
  -     * @param insertionIndex  the position in the array to add the elements to
  -     * @return the array with the inserted collection
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if the index is invalid
        */
  -    byte[] toValueArray(byte[] array, int insertionIndex);
  +    byte[] toValueArray(byte[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------
  
  
  
  1.2       +7 -5      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/BooleanCollection.java
  
  Index: BooleanCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/BooleanCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BooleanCollection.java	20 Sep 2003 23:50:27 -0000	1.1
  +++ BooleanCollection.java	22 Sep 2003 23:55:29 -0000	1.2
  @@ -106,17 +106,19 @@
   
       /**
        * Copies the elements of this collection into an array at a specified position.
  +     * Previous values in the array are overwritten.
        * <p>
  +     * If the array specified is null a new array is created.
        * If the array specified is large enough, it will be modified.
        * If the array is not large enough, a new array will be created and all
  -     * elements copied before the insertion begins.
  +     * elements copied before the copy begins.
        *
        * @param array  the array to add the elements to
  -     * @param insertionIndex  the position in the array to add the elements to
  -     * @return the array with the inserted collection
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if the index is invalid
        */
  -    boolean[] toValueArray(boolean[] array, int insertionIndex);
  +    boolean[] toValueArray(boolean[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------
  
  
  
  1.2       +7 -5      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/DoubleCollection.java
  
  Index: DoubleCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/collection/DoubleCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DoubleCollection.java	20 Sep 2003 23:50:27 -0000	1.1
  +++ DoubleCollection.java	22 Sep 2003 23:55:29 -0000	1.2
  @@ -106,17 +106,19 @@
   
       /**
        * Copies the elements of this collection into an array at a specified position.
  +     * Previous values in the array are overwritten.
        * <p>
  +     * If the array specified is null a new array is created.
        * If the array specified is large enough, it will be modified.
        * If the array is not large enough, a new array will be created and all
  -     * elements copied before the insertion begins.
  +     * elements copied before the copy begins.
        *
        * @param array  the array to add the elements to
  -     * @param insertionIndex  the position in the array to add the elements to
  -     * @return the array with the inserted collection
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if the index is invalid
        */
  -    double[] toValueArray(double[] array, int insertionIndex);
  +    double[] toValueArray(double[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------