@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 index0,
int index1) |
static boolean |
get(boolean[] array,
int index) |
static byte |
get(byte[][] array,
int index0,
int index1) |
static byte |
get(byte[] array,
int index) |
static char |
get(char[][] array,
int index0,
int index1) |
static char |
get(char[] array,
int index) |
static double |
get(double[][] array,
int index0,
int index1) |
static double |
get(double[] array,
int index) |
static float |
get(float[][] array,
int index0,
int index1) |
static float |
get(float[] array,
int index) |
static int |
get(int[][] array,
int index0,
int index1) |
static int |
get(int[] array,
int index) |
static long |
get(long[][] array,
int index0,
int index1) |
static long |
get(long[] array,
int index) |
static short |
get(short[][] array,
int index0,
int index1) |
static short |
get(short[] array,
int index) |
static <T> T |
get(T[][] array,
int index0,
int index1) |
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 boolean |
set(boolean[][] array,
int index0,
int index1,
boolean value) |
static boolean |
set(boolean[] array,
int index,
boolean value) |
static byte |
set(byte[][] array,
int index0,
int index1,
byte value) |
static byte |
set(byte[] array,
int index,
byte value) |
static char |
set(char[][] array,
int index0,
int index1,
char value) |
static char |
set(char[] array,
int index,
char value) |
static double |
set(double[][] array,
int index0,
int index1,
double value) |
static double |
set(double[] array,
int index,
double value) |
static float |
set(float[][] array,
int index0,
int index1,
float value) |
static float |
set(float[] array,
int index,
float value) |
static int |
set(int[][] array,
int index0,
int index1,
int value) |
static int |
set(int[] array,
int index,
int value) |
static long |
set(long[][] array,
int index0,
int index1,
long value) |
static long |
set(long[] array,
int index,
long value) |
static short |
set(short[][] array,
int index0,
int index1,
short value) |
static short |
set(short[] array,
int index,
short value) |
static <T,E extends T> |
set(T[][] array,
int index0,
int index1,
E value) |
static <T,E extends T> |
set(T[] array,
int index,
E value) |
public static <T,E extends T> T 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 @GwtIncompatible(value="clone") 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 boolean 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 @GwtIncompatible(value="clone") 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 double 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 @GwtIncompatible(value="clone") 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 float 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 @GwtIncompatible(value="clone") 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 long 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 @GwtIncompatible(value="clone") 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 int 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 @GwtIncompatible(value="clone") 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 char 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 @GwtIncompatible(value="clone") 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 short 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 @GwtIncompatible(value="clone") 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 byte 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 @GwtIncompatible(value="clone") public static byte[] clone(byte[] array)
Object.clone()array - the array@Pure public static <T> T get(T[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the second indexpublic static <T,E extends T> T set(T[][] array,
int index0,
int index1,
E value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given indexes@Pure public static boolean get(boolean[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the second indexpublic static boolean set(boolean[][] array,
int index0,
int index1,
boolean value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given indexes@Pure public static double get(double[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the second indexpublic static double set(double[][] array,
int index0,
int index1,
double value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given indexex@Pure public static float get(float[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the first indexpublic static float set(float[][] array,
int index0,
int index1,
float value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given indexes@Pure public static long get(long[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the second indexpublic static long set(long[][] array,
int index0,
int index1,
long value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given indexes@Pure public static int get(int[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the second indexpublic static int set(int[][] array,
int index0,
int index1,
int value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given index@Pure public static char get(char[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the second indexpublic static char set(char[][] array,
int index0,
int index1,
char value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given indexes@Pure public static short get(short[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the second indexpublic static short set(short[][] array,
int index0,
int index1,
short value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given indexes@Pure public static byte get(byte[][] array, int index0, int index1)
array - the arrayindex0 - the first indexindex1 - the second indexpublic static byte set(byte[][] array,
int index0,
int index1,
byte value)
array - the arrayindex0 - the first index the value should be set atindex1 - the second index the value should be set atvalue - the value to set at the given indexes