Package org.conscrypt
Class ArrayUtils
- java.lang.Object
-
- org.conscrypt.ArrayUtils
-
@Internal public final class ArrayUtils extends java.lang.Object
Compatibility utility for Arrays.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateArrayUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (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)
-
-
-
Method Detail
-
checkOffsetAndCount
static void checkOffsetAndCount(int arrayLength, int offset, int count)Checks that the range described byoffsetandcountdoesn't exceedarrayLength.
-
concatValues
@SafeVarargs public static <T> T[] concatValues(T[] a1, T... values)
-
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.
-
-