android.util
public
class
android.util.ArrayUtils
ArrayUtils contains some methods that you can call to find out
the most efficient increments by which to grow arrays.
Summary
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Methods
public
static
T[]
emptyArray(Class kind)
Returns an empty array of the specified type. The intent is that
it will return the same empty array every time to avoid reallocation,
although this is not guaranteed.
public
static
boolean
equals(byte[] array1, byte[] array2, int length)
Checks if the beginnings of two byte arrays are equal.
Parameters
| array1
| the first byte array |
| array2
| the second byte array |
| length
| the number of bytes to check |
Returns
- true if they're equal, false otherwise
public
static
int
idealBooleanArraySize(int need)
public
static
int
idealByteArraySize(int need)
public
static
int
idealCharArraySize(int need)
public
static
int
idealFloatArraySize(int need)
public
static
int
idealIntArraySize(int need)
public
static
int
idealLongArraySize(int need)
public
static
int
idealObjectArraySize(int need)
public
static
int
idealShortArraySize(int need)