@GwtCompatible
public class ArrayExtensions
extends java.lang.Object
Constructor and Description |
---|
ArrayExtensions() |
Modifier and Type | Method and Description |
---|---|
static boolean[] |
clone(boolean[] array)
Clones the array.
|
static byte[] |
clone(byte[] array)
Clones the array.
|
static char[] |
clone(char[] array)
Clones the array.
|
static double[] |
clone(double[] array)
Clones the array.
|
static float[] |
clone(float[] array)
Clones the array.
|
static int[] |
clone(int[] array)
Clones the array.
|
static long[] |
clone(long[] array)
Clones the array.
|
static short[] |
clone(short[] array)
Clones the array.
|
static <T> T[] |
clone(T[] array)
Clones the array.
|
static boolean |
equals(boolean[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
equals(byte[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
equals(char[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
equals(double[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
equals(float[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
equals(int[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
equals(long[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
equals(java.lang.Object[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
equals(short[] array,
java.lang.Object other)
Returns whether the array and the given other object are identical.
|
static boolean |
get(boolean[] array,
int index) |
static byte |
get(byte[] array,
int index) |
static char |
get(char[] array,
int index) |
static double |
get(double[] array,
int index) |
static float |
get(float[] array,
int index) |
static int |
get(int[] array,
int index) |
static long |
get(long[] array,
int index) |
static short |
get(short[] array,
int index) |
static <T> T |
get(T[] array,
int index) |
static int |
hashCode(boolean[] array)
Returns a hash code value for the given array.
|
static int |
hashCode(byte[] array)
Returns a hash code value for the given array.
|
static int |
hashCode(char[] array)
Returns a hash code value for the given array.
|
static int |
hashCode(double[] array)
Returns a hash code value for the given array.
|
static int |
hashCode(float[] array)
Returns a hash code value for the given array.
|
static int |
hashCode(int[] array)
Returns a hash code value for the given array.
|
static int |
hashCode(long[] array)
Returns a hash code value for the given array.
|
static int |
hashCode(java.lang.Object[] array)
Returns a hash code value for the given array.
|
static int |
hashCode(short[] array)
Returns a hash code value for the given array.
|
static int |
length(boolean[] array) |
static int |
length(byte[] array) |
static int |
length(char[] array) |
static int |
length(double[] array) |
static int |
length(float[] array) |
static int |
length(int[] array) |
static int |
length(long[] array) |
static int |
length(java.lang.Object[] array) |
static int |
length(short[] array) |
static void |
set(boolean[] array,
int index,
boolean value) |
static void |
set(byte[] array,
int index,
byte value) |
static void |
set(char[] array,
int index,
char value) |
static void |
set(double[] array,
int index,
double value) |
static void |
set(float[] array,
int index,
float value) |
static void |
set(int[] array,
int index,
int value) |
static void |
set(long[] array,
int index,
long value) |
static void |
set(short[] array,
int index,
short value) |
static <T,E extends T> |
set(T[] array,
int index,
E value) |
public static <T,E extends T> void set(T[] array, int index, E value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static <T> T get(T[] array, int index)
array
- the arrayindex
- the index@Pure public static <T> T[] clone(T[] array)
Object.clone()
array
- the array@Pure public static int length(java.lang.Object[] array)
array
- the array@Pure public static int hashCode(java.lang.Object[] array)
array
- the array@Pure public static boolean equals(java.lang.Object[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static boolean get(boolean[] array, int index)
array
- the arrayindex
- the indexpublic static void set(boolean[] array, int index, boolean value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static int length(boolean[] array)
array
- the array@Pure public static int hashCode(boolean[] array)
array
- the array@Pure public static boolean equals(boolean[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static boolean[] clone(boolean[] array)
Object.clone()
array
- the array@Pure public static double get(double[] array, int index)
array
- the arrayindex
- the indexpublic static void set(double[] array, int index, double value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static int length(double[] array)
array
- the array@Pure public static int hashCode(double[] array)
array
- the array@Pure public static boolean equals(double[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static double[] clone(double[] array)
Object.clone()
array
- the array@Pure public static float get(float[] array, int index)
array
- the arrayindex
- the indexpublic static void set(float[] array, int index, float value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static int length(float[] array)
array
- the array@Pure public static int hashCode(float[] array)
array
- the array@Pure public static boolean equals(float[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static float[] clone(float[] array)
Object.clone()
array
- the array@Pure public static long get(long[] array, int index)
array
- the arrayindex
- the indexpublic static void set(long[] array, int index, long value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static int length(long[] array)
array
- the array@Pure public static int hashCode(long[] array)
array
- the array@Pure public static boolean equals(long[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static long[] clone(long[] array)
Object.clone()
array
- the array@Pure public static int get(int[] array, int index)
array
- the arrayindex
- the indexpublic static void set(int[] array, int index, int value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static int length(int[] array)
array
- the array@Pure public static int hashCode(int[] array)
array
- the array@Pure public static boolean equals(int[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static int[] clone(int[] array)
Object.clone()
array
- the array@Pure public static char get(char[] array, int index)
array
- the arrayindex
- the indexpublic static void set(char[] array, int index, char value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static int length(char[] array)
array
- the array@Pure public static int hashCode(char[] array)
array
- the array@Pure public static boolean equals(char[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static char[] clone(char[] array)
Object.clone()
array
- the array@Pure public static short get(short[] array, int index)
array
- the arrayindex
- the indexpublic static void set(short[] array, int index, short value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static int length(short[] array)
array
- the array@Pure public static int hashCode(short[] array)
array
- the array@Pure public static boolean equals(short[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static short[] clone(short[] array)
Object.clone()
array
- the array@Pure public static byte get(byte[] array, int index)
array
- the arrayindex
- the indexpublic static void set(byte[] array, int index, byte value)
array
- the arrayindex
- the index the value should be set atvalue
- the value to set at the given index@Pure public static int length(byte[] array)
array
- the array@Pure public static int hashCode(byte[] array)
array
- the array@Pure public static boolean equals(byte[] array, java.lang.Object other)
Object.equals(Object)
array
- the arrayother
- the other element to compare to@Pure public static byte[] clone(byte[] array)
Object.clone()
array
- the array