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:54:09 UTC

cvs commit: jakarta-commons-sandbox/primitives/src/codegen/org/apache/commons/primitive/list XXXList.vm

scolebourne    2003/09/22 16:54:09

  Modified:    primitives/src/codegen/org/apache/commons/primitive/collection
                        XXXCollection.vm
               primitives/src/codegen/org/apache/commons/primitive/list
                        XXXList.vm
  Log:
  Javadoc
  
  Revision  Changes    Path
  1.2       +7 -5      jakarta-commons-sandbox/primitives/src/codegen/org/apache/commons/primitive/collection/XXXCollection.vm
  
  Index: XXXCollection.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/codegen/org/apache/commons/primitive/collection/XXXCollection.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XXXCollection.vm	20 Sep 2003 23:46:34 -0000	1.1
  +++ XXXCollection.vm	22 Sep 2003 23:54:09 -0000	1.2
  @@ -54,17 +54,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
        */
  -    ${type}[] toValueArray(${type}[] array, int insertionIndex);
  +    ${type}[] toValueArray(${type}[] array, int startIndex);
   
       // Optional operations
       //-----------------------------------------------------------------------
  
  
  
  1.2       +8 -6      jakarta-commons-sandbox/primitives/src/codegen/org/apache/commons/primitive/list/XXXList.vm
  
  Index: XXXList.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/codegen/org/apache/commons/primitive/list/XXXList.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XXXList.vm	20 Sep 2003 23:46:34 -0000	1.1
  +++ XXXList.vm	22 Sep 2003 23:54:09 -0000	1.2
  @@ -115,19 +115,21 @@
   
       /**
        * Copies a range of elements 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 fromIndexInclusive  the index to start from, inclusive
        * @param toIndexExclusive  the index to end at, exclusive
  -     * @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 array  the array to add the elements to, may be null
  +     * @param startIndex  the position in the array to start setting elements
  +     * @return the array with the populated collection
        * @throws IndexOutOfBoundsException if any index is invalid
        */
  -    ${type}[] toValueArray(int fromIndexInclusive, int toIndexExclusive, ${type}[] array, int insertionIndex);
  +    ${type}[] toValueArray(int fromIndexInclusive, int toIndexExclusive, ${type}[] array, int startIndex);
   
       /**
        * Sets the primitive values starting at a specified index.