|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--danger.util.ArrayUtils
Generic array utilities.
| Method Summary | |
static int |
idealByteArrayLength(int minSize)
Return the "ideal length" for a byte[] that must be at
least the given number of elements in length. |
static int |
idealCharArrayLength(int minSize)
Return the "ideal length" for a char[] that must be at
least the given number of elements in length. |
static int |
idealIntArrayLength(int minSize)
Return the "ideal length" for an int[] that must be at
least the given number of elements in length. |
static int |
idealLongArrayLength(int minSize)
Return the "ideal length" for a long[] that must be at
least the given number of elements in length. |
static int |
idealObjectArrayLength(int minSize)
Return the "ideal length" for an Object[] (or subclass
thereof) that must be at least the given number of elements in
length. |
static int |
idealShortArrayLength(int minSize)
Return the "ideal length" for a short[] that must be at
least the given number of elements in length. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static int idealByteArrayLength(int minSize)
byte[] that must be at
least the given number of elements in length. This takes into
account the underlying allocation strategy.minSize - the minimum length of the arraypublic static int idealCharArrayLength(int minSize)
char[] that must be at
least the given number of elements in length. This takes into
account the underlying allocation strategy.minSize - the minimum length of the arraypublic static int idealShortArrayLength(int minSize)
short[] that must be at
least the given number of elements in length. This takes into
account the underlying allocation strategy.minSize - the minimum length of the arraypublic static int idealIntArrayLength(int minSize)
int[] that must be at
least the given number of elements in length. This takes into
account the underlying allocation strategy.minSize - the minimum length of the arraypublic static int idealLongArrayLength(int minSize)
long[] that must be at
least the given number of elements in length. This takes into
account the underlying allocation strategy.minSize - the minimum length of the arraypublic static int idealObjectArrayLength(int minSize)
Object[] (or subclass
thereof) that must be at least the given number of elements in
length. This takes into account the underlying allocation strategy.minSize - the minimum length of the array
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||