public final class Arrays
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Arrays() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areEqual(java.math.BigInteger[] a,
java.math.BigInteger[] b) |
static boolean |
areEqual(boolean[] a,
boolean[] b) |
static boolean |
areEqual(byte[] a,
byte[] b) |
static boolean |
areEqual(char[] a,
char[] b) |
static boolean |
areEqual(int[] a,
int[] b) |
static boolean |
areEqual(long[] a,
long[] b) |
static java.math.BigInteger[] |
clone(java.math.BigInteger[] data) |
static byte[] |
clone(byte[] data) |
static int[] |
clone(int[] data) |
static boolean |
constantTimeAreEqual(byte[] a,
byte[] b)
A constant time equals comparison - does not terminate early if
test will fail.
|
static java.math.BigInteger[] |
copyOf(java.math.BigInteger[] data,
int newLength) |
static byte[] |
copyOf(byte[] data,
int newLength) |
static int[] |
copyOf(int[] data,
int newLength) |
static long[] |
copyOf(long[] data,
int newLength) |
static java.math.BigInteger[] |
copyOfRange(java.math.BigInteger[] data,
int from,
int to) |
static byte[] |
copyOfRange(byte[] data,
int from,
int to) |
static int[] |
copyOfRange(int[] data,
int from,
int to) |
static long[] |
copyOfRange(long[] data,
int from,
int to) |
static void |
fill(byte[] array,
byte value) |
static void |
fill(int[] array,
int value) |
static void |
fill(long[] array,
long value) |
static void |
fill(short[] array,
short value) |
private static int |
getLength(int from,
int to) |
static int |
hashCode(java.math.BigInteger[] data) |
static int |
hashCode(byte[] data) |
static int |
hashCode(char[] data) |
static int |
hashCode(int[] data) |
public static boolean areEqual(boolean[] a, boolean[] b)
public static boolean areEqual(char[] a, char[] b)
public static boolean areEqual(byte[] a, byte[] b)
public static boolean constantTimeAreEqual(byte[] a, byte[] b)
a
- first arrayb
- second arraypublic static boolean areEqual(int[] a, int[] b)
public static boolean areEqual(long[] a, long[] b)
public static boolean areEqual(java.math.BigInteger[] a, java.math.BigInteger[] b)
public static void fill(byte[] array, byte value)
public static void fill(long[] array, long value)
public static void fill(short[] array, short value)
public static void fill(int[] array, int value)
public static int hashCode(byte[] data)
public static int hashCode(char[] data)
public static int hashCode(int[] data)
public static int hashCode(java.math.BigInteger[] data)
public static byte[] clone(byte[] data)
public static int[] clone(int[] data)
public static java.math.BigInteger[] clone(java.math.BigInteger[] data)
public static byte[] copyOf(byte[] data, int newLength)
public static int[] copyOf(int[] data, int newLength)
public static long[] copyOf(long[] data, int newLength)
public static java.math.BigInteger[] copyOf(java.math.BigInteger[] data, int newLength)
public static byte[] copyOfRange(byte[] data, int from, int to)
public static int[] copyOfRange(int[] data, int from, int to)
public static long[] copyOfRange(long[] data, int from, int to)
public static java.math.BigInteger[] copyOfRange(java.math.BigInteger[] data, int from, int to)
private static int getLength(int from, int to)