public class ArrayUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ARRAY_SIZE
This is a safe value used by
ArrayList (as of Java 7) to avoid
throwing OutOfMemoryError on some JVMs. |
Constructor and Description |
---|
ArrayUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
ensureFromTo(int arrayLength,
int from,
int to) |
static void |
ensureIndex(int index,
int size) |
static void |
ensureOffsetLength(int arrayLength,
int offset,
int length) |
public static final int MAX_ARRAY_SIZE
ArrayList
(as of Java 7) to avoid
throwing OutOfMemoryError
on some JVMs. We adopt the same value.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.