public class ArrayUtil
extends java.lang.Object
| Constructor and Description |
|---|
ArrayUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
arraycopy(byte[] src,
int src_position,
byte[] dst,
int dst_position,
int length)
This is really a debugging version of
System.arraycopy(). |
static void |
arrayMoveWithin(java.lang.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)
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.public static void arrayMoveWithin(java.lang.Object[] array,
int moveFrom,
int moveTo,
int numToMove)
array - The array to altermoveFrom - The (0 based) index of the first entry to movemoveTo - The (0 based) index of the positition to move tonumToMove - The number of entries to moveCopyright 2018 The Apache Software Foundation or its licensors, as applicable.