|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.util.ArrayUtils
public final class 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. |
static int |
lowerIdealByteArrayLength(int minSize)
Return the portion of a byte[] of the specified size
that would fit into an ideal-sized array. |
| 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 array
public 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 array
public 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 array
public 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 array
public 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 array
public 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
public static int lowerIdealByteArrayLength(int minSize)
byte[] of the specified size
that would fit into an ideal-sized array.
minSize - the preferred length of the array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||