|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfulmine.util.array.ArrayUtils
public abstract class ArrayUtils
A utility class exposing utility methods for handling arrays.
| Constructor Summary | |
|---|---|
ArrayUtils()
|
|
| Method Summary | |
|---|---|
static int |
indexOf(byte[] subArray,
byte[] array)
Find the index of a sub-array within another array |
static byte[] |
merge(byte[] first,
byte[] second)
Merge two arrays to form one. |
static void |
resize(byte[][] array,
int extraSize)
Resize array[0] to allow space for extraSize more elements. |
static void |
resize(int[][] array,
int extraSize)
Resize array[0] to allow space for extraSize more elements. |
static void |
resize(String[][] array,
int extraSize)
Resize array[0] to allow space for extraSize more elements. |
static void |
resizeIfNeeded(byte[][] array,
int requiredSize)
If array[0] does not have requiredSize elements, then resize array[0] to allow requiredSize elements. |
static void |
resizeIfNeeded(int[][] array,
int requiredSize)
If array[0] does not have requiredSize elements, then resize array[0] to allow requiredSize elements. |
static void |
resizeIfNeeded(String[][] array,
int requiredSize)
If array[0] does not have requiredSize elements, then resize array[0] to allow requiredSize elements. |
static boolean |
startsWith(byte[] subArray,
byte[] array)
Determine if the array starts with the sub-array |
static void |
trim(byte[][] array,
int length)
Trim the array[0] to the given length. |
static void |
trim(int[][] array,
int length)
Trim the array[0] to the given length. |
static void |
trim(String[][] array,
int length)
Trim the array[0] to the given length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayUtils()
| Method Detail |
|---|
public static void resize(byte[][] array,
int extraSize)
array - array[0] to resizeextraSize - the extra space to add to array[0]
public static void resize(String[][] array,
int extraSize)
array - array[0] to resizeextraSize - the extra space to add to array[0]
public static void trim(byte[][] array,
int length)
array - array[0] to trimlength - the new length for array[0]
public static void trim(String[][] array,
int length)
array - array[0] to trimlength - the new length for array[0]
public static void resize(int[][] array,
int extraSize)
array - array[0] to resizeextraSize - the extra space to add to array[0]
public static void trim(int[][] array,
int length)
array - array[0] to trimlength - the new length for array[0]
public static void resizeIfNeeded(byte[][] array,
int requiredSize)
array - array[0] to checkrequiredSize - the number of elements that array[0] must contain
public static void resizeIfNeeded(String[][] array,
int requiredSize)
array - array[0] to checkrequiredSize - the number of elements that array[0] must contain
public static void resizeIfNeeded(int[][] array,
int requiredSize)
array - array[0] to checkrequiredSize - the number of elements that array[0] must contain
public static boolean startsWith(byte[] subArray,
byte[] array)
subArray - the sub-array to find in the arrayarray - the array to examine
true if array starts with subArray
public static int indexOf(byte[] subArray,
byte[] array)
subArray - the sub-array to find in the arrayarray - the array to search
public static byte[] merge(byte[] first,
byte[] second)
first - the first arraysecond - the second array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||