This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static <T> T[] | Returns: possibly reallocated array of length at leastmaxIndex + 1original array array, int exclusive lower bound for desired length maxIndex)Ensure the given array has length at least |
| public static byte[] | Returns: possibly reallocated array of length at leastmaxIndex + 1original array array, int exclusive lower bound for desired length maxIndex)Ensure the given array has length at least |
| public static char[] | Returns: possibly reallocated array of length at leastmaxIndex + 1original array array, int exclusive lower bound for desired length maxIndex)Ensure the given array has length at least |
| public static int[] | Returns: possibly reallocated array of length at leastmaxIndex + 1original array array, int exclusive lower bound for desired length maxIndex)Ensure the given array has length at least |
| ArrayUtils | back to summary |
|---|---|
| public ArrayUtils() | |
| calculateNewLength | back to summary |
|---|---|
| private static int calculateNewLength(int currentLength, int maxIndex) | |
| ensureCapacity | back to summary |
|---|---|
| public static <T> T[] ensureCapacity(T[] array, int maxIndex) Ensure the given array has length at least
| |
| ensureCapacity | back to summary |
|---|---|
| public static byte[] ensureCapacity(byte[] array, int maxIndex) Ensure the given array has length at least
| |
| ensureCapacity | back to summary |
|---|---|
| public static char[] ensureCapacity(char[] array, int maxIndex) Ensure the given array has length at least
| |
| ensureCapacity | back to summary |
|---|---|
| public static int[] ensureCapacity(int[] array, int maxIndex) Ensure the given array has length at least
| |