Arrays instead@Deprecated public class Arrays extends Object
Arrays contains static methods which operate on arrays. This code is taken from the
Apache Harmony JDK, licensed under the Apache Software License 2.0.| Constructor and Description |
|---|
Arrays()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
copyOf(T[] original,
int newLength)
Deprecated.
|
static <T> T[] |
copyOfRange(T[] original,
int start,
int end)
Deprecated.
|
@Deprecated public static <T> T[] copyOf(T[] original, int newLength)
Arrays.copyOf(Object[], int)T - type of element in arrayoriginal - the original arraynewLength - the length of copied arrayNegativeArraySizeException - if the newLength is smaller than zeroNullPointerException - if the original array is null@Deprecated public static <T> T[] copyOfRange(T[] original, int start, int end)
copyOfRange(Object[], int, int)T - type of element in arrayoriginal - the original arraystart - the start index, inclusiveend - the end index, exclusive, may bigger than length of the arrayArrayIndexOutOfBoundsException - if start is smaller than 0 or bigger than original.lengthIllegalArgumentException - if start is bigger than endNullPointerException - if original is nullCopyright © 2006–2015 Apache Software Foundation. All rights reserved.