| java.lang.Object org.apache.poi.util.ArrayUtil
ArrayUtil | public class ArrayUtil (Code) | | Utility classes for dealing with arrays.
author: Glen Stampoultzis version: $Id: ArrayUtil.java 489730 2006-12-22 19:18:16Z bayard $ |
Method Summary | |
public static void | arrayMoveWithin(Object[] array, int moveFrom, int moveTo, int numToMove) Moves a number of entries in an array to another point in the array,
shifting those inbetween as required. | public static void | arraycopy(byte[] src, int src_position, byte[] dst, int dst_position, int length) This is really a debugging version of System.arraycopy() . |
arrayMoveWithin | public static void arrayMoveWithin(Object[] array, int moveFrom, int moveTo, int numToMove)(Code) | | Moves a number of entries in an array to another point in the array,
shifting those inbetween as required.
Parameters: array - The array to alter Parameters: moveFrom - The (0 based) index of the first entry to move Parameters: moveTo - The (0 based) index of the positition to move to Parameters: numToMove - The number of entries to move |
arraycopy | public static void arraycopy(byte[] src, int src_position, byte[] dst, int dst_position, int length)(Code) | | This is really a debugging version of System.arraycopy() .
Use it to provide better exception messages when copying arrays around.
For production use it's better to use the original for speed.
|
|
|