|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecta_vcard.com.android.internal.util.ArrayUtils
public class ArrayUtils
ArrayUtils contains some methods that you can call to find out the most efficient increments by which to grow arrays.
Method Summary | ||
---|---|---|
static
|
contains(T[] array,
T value)
Checks that value is present as at least one of the elements of the array. |
|
static
|
emptyArray(java.lang.Class<T> kind)
Returns an empty array of the specified type. |
|
static boolean |
equals(byte[] array1,
byte[] array2,
int length)
Checks if the beginnings of two byte arrays are equal. |
|
static int |
idealBooleanArraySize(int need)
|
|
static int |
idealByteArraySize(int need)
|
|
static int |
idealCharArraySize(int need)
|
|
static int |
idealFloatArraySize(int need)
|
|
static int |
idealIntArraySize(int need)
|
|
static int |
idealLongArraySize(int need)
|
|
static int |
idealObjectArraySize(int need)
|
|
static int |
idealShortArraySize(int need)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int idealByteArraySize(int need)
public static int idealBooleanArraySize(int need)
public static int idealShortArraySize(int need)
public static int idealCharArraySize(int need)
public static int idealIntArraySize(int need)
public static int idealFloatArraySize(int need)
public static int idealObjectArraySize(int need)
public static int idealLongArraySize(int need)
public static boolean equals(byte[] array1, byte[] array2, int length)
array1
- the first byte arrayarray2
- the second byte arraylength
- the number of bytes to check
public static <T> T[] emptyArray(java.lang.Class<T> kind)
public static <T> boolean contains(T[] array, T value)
array
- the array to check invalue
- the value to check for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |