Class ArrayUtils
java.lang.Object
org.conscrypt.ArrayUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidcheckOffsetAndCount(int arrayLength, int offset, int count) Checks that the range described byoffsetandcountdoesn't exceedarrayLength.static byte[]concat(byte[] a1, byte[] a2) static <T> T[]concat(T[] a1, T[] a2) static <T> T[]concatValues(T[] a1, T... values) static <T> booleanisEmpty(T[] array) Checks if given array is null or has zero elements.static byte[]reverse(byte[] array) static booleanstartsWith(byte[] array, byte[] startsWith)
-
Constructor Details
-
ArrayUtils
private ArrayUtils()
-
-
Method Details
-
checkOffsetAndCount
static void checkOffsetAndCount(int arrayLength, int offset, int count) Checks that the range described byoffsetandcountdoesn't exceedarrayLength. -
concatValues
-
concat
public static <T> T[] concat(T[] a1, T[] a2) -
concat
public static byte[] concat(byte[] a1, byte[] a2) -
startsWith
public static boolean startsWith(byte[] array, byte[] startsWith) -
reverse
public static byte[] reverse(byte[] array) -
isEmpty
public static <T> boolean isEmpty(T[] array) Checks if given array is null or has zero elements.
-