Package org.teavm.classlib.java.util
Class TArrays
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TArrays
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TList<T> asList(T... a) static intbinarySearch(byte[] a, byte key) static intbinarySearch(byte[] a, int fromIndex, int toIndex, byte key) static intbinarySearch(char[] a, char key) static intbinarySearch(char[] a, int fromIndex, int toIndex, char key) static intbinarySearch(double[] a, double key) static intbinarySearch(double[] a, int fromIndex, int toIndex, double key) static intbinarySearch(float[] a, float key) static intbinarySearch(float[] a, int fromIndex, int toIndex, float key) static intbinarySearch(int[] a, int key) static intbinarySearch(int[] a, int fromIndex, int toIndex, int key) static intbinarySearch(long[] a, int fromIndex, int toIndex, long key) static intbinarySearch(long[] a, long key) static intbinarySearch(short[] a, int fromIndex, int toIndex, short key) static intbinarySearch(short[] a, short key) static intbinarySearch(Object[] a, int fromIndex, int toIndex, Object key) static intbinarySearch(Object[] a, Object key) static <T> intbinarySearch(T[] a, int fromIndex, int toIndex, T key, TComparator<? super T> c) static <T> intbinarySearch(T[] a, T key, TComparator<? super T> c) static boolean[]copyOf(boolean[] array, int length) static byte[]copyOf(byte[] array, int length) static char[]copyOf(char[] array, int length) static double[]copyOf(double[] array, int length) static float[]copyOf(float[] array, int length) static int[]copyOf(int[] array, int length) static long[]copyOf(long[] array, int length) static short[]copyOf(short[] array, int length) static <T> T[]copyOf(T[] original, int newLength) static <T,U> T[] static boolean[]copyOfRange(boolean[] array, int from, int to) static byte[]copyOfRange(byte[] array, int from, int to) static char[]copyOfRange(char[] array, int from, int to) static double[]copyOfRange(double[] array, int from, int to) static float[]copyOfRange(float[] array, int from, int to) static int[]copyOfRange(int[] array, int from, int to) static long[]copyOfRange(long[] array, int from, int to) static short[]copyOfRange(short[] array, int from, int to) static <T> T[]copyOfRange(T[] original, int from, int to) static <T,U> T[] copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) static booleandeepEquals(Object[] a1, Object[] a2) static intdeepHashCode(Object[] a) static StringdeepToString(Object[] a) static booleanequals(boolean[] a, boolean[] a2) static booleanequals(boolean[] a, int aFromIndex, int aToIndex, boolean[] b, int bFromIndex, int bToIndex) static booleanequals(byte[] a, byte[] a2) static booleanequals(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) static booleanequals(char[] a, char[] a2) static booleanequals(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) static booleanequals(double[] a, double[] a2) static booleanequals(double[] a, int aFromIndex, int aToIndex, double[] b, int bFromIndex, int bToIndex) static booleanequals(float[] a, float[] a2) static booleanequals(float[] a, int aFromIndex, int aToIndex, float[] b, int bFromIndex, int bToIndex) static booleanequals(int[] a, int[] a2) static booleanequals(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex) static booleanequals(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex) static booleanequals(long[] a, long[] a2) static booleanequals(short[] a, int aFromIndex, int aToIndex, short[] b, int bFromIndex, int bToIndex) static booleanequals(short[] a, short[] a2) static booleanstatic booleanstatic voidfill(boolean[] a, boolean val) static voidfill(boolean[] a, int fromIndex, int toIndex, boolean val) static voidfill(byte[] a, byte val) static voidfill(byte[] a, int fromIndex, int toIndex, byte val) static voidfill(char[] a, char val) static voidfill(char[] a, int fromIndex, int toIndex, char val) static voidfill(double[] a, double val) static voidfill(double[] a, int fromIndex, int toIndex, double val) static voidfill(float[] a, float val) static voidfill(float[] a, int fromIndex, int toIndex, float val) static voidfill(int[] a, int val) static voidfill(int[] a, int fromIndex, int toIndex, int val) static voidfill(long[] a, int fromIndex, int toIndex, long val) static voidfill(long[] a, long val) static voidfill(short[] a, int fromIndex, int toIndex, short val) static voidfill(short[] a, short val) static voidstatic voidstatic inthashCode(boolean[] a) static inthashCode(byte[] a) static inthashCode(char[] a) static inthashCode(double[] a) static inthashCode(float[] a) static inthashCode(int[] a) static inthashCode(long[] a) static inthashCode(short[] a) static intstatic intmismatch(boolean[] a, boolean[] a2) static intmismatch(boolean[] a, int aFromIndex, int aToIndex, boolean[] b, int bFromIndex, int bToIndex) static intmismatch(byte[] a, byte[] a2) static intmismatch(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) static intmismatch(char[] a, char[] a2) static intmismatch(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) static intmismatch(double[] a, double[] a2) static intmismatch(double[] a, int aFromIndex, int aToIndex, double[] b, int bFromIndex, int bToIndex) static intmismatch(float[] a, float[] a2) static intmismatch(float[] a, int aFromIndex, int aToIndex, float[] b, int bFromIndex, int bToIndex) static intmismatch(int[] a, int[] a2) static intmismatch(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex) static intmismatch(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex) static intmismatch(long[] a, long[] a2) static intmismatch(short[] a, int aFromIndex, int aToIndex, short[] b, int bFromIndex, int bToIndex) static intmismatch(short[] a, short[] a2) static intstatic intstatic voidsetAll(double[] array, IntToDoubleFunction generator) static voidsetAll(int[] array, IntUnaryOperator generator) static voidsetAll(long[] array, IntToLongFunction generator) static <T> voidsetAll(T[] array, IntFunction<? extends T> generator) static voidsort(byte[] a) static voidsort(byte[] a, int fromIndex, int toIndex) static voidsort(char[] a) static voidsort(char[] a, int fromIndex, int toIndex) static voidsort(double[] a) static voidsort(double[] a, int fromIndex, int toIndex) static voidsort(float[] a) static voidsort(float[] a, int fromIndex, int toIndex) static voidsort(int[] a) static voidsort(int[] a, int fromIndex, int toIndex) static voidsort(long[] a) static voidsort(long[] a, int fromIndex, int toIndex) static voidsort(short[] a) static voidsort(short[] a, int fromIndex, int toIndex) static voidstatic voidstatic <T> voidsort(T[] a, int fromIndex, int toIndex, TComparator<? super T> c) static <T> voidsort(T[] a, TComparator<? super T> c) static TDoubleStreamstream(double[] array) static TDoubleStreamstream(double[] array, int startInclusive, int endExclusive) static TIntStreamstream(int[] array) static TIntStreamstream(int[] array, int startInclusive, int endExclusive) static TLongStreamstream(long[] array) static TLongStreamstream(long[] array, int startInclusive, int endExclusive) static <T> TStream<T> stream(T[] array) static <T> TStream<T> stream(T[] array, int startInclusive, int endExclusive) static StringtoString(boolean[] a) static StringtoString(byte[] a) static StringtoString(char[] a) static StringtoString(double[] a) static StringtoString(float[] a) static StringtoString(int[] a) static StringtoString(long[] a) static StringtoString(short[] a) static String
-
Constructor Details
-
TArrays
public TArrays()
-
-
Method Details
-
copyOf
public static char[] copyOf(char[] array, int length) -
copyOf
public static byte[] copyOf(byte[] array, int length) -
copyOf
public static short[] copyOf(short[] array, int length) -
copyOf
public static int[] copyOf(int[] array, int length) -
copyOf
public static long[] copyOf(long[] array, int length) -
copyOf
public static float[] copyOf(float[] array, int length) -
copyOf
public static double[] copyOf(double[] array, int length) -
copyOf
public static boolean[] copyOf(boolean[] array, int length) -
copyOf
public static <T> T[] copyOf(T[] original, int newLength) -
copyOf
-
copyOfRange
public static boolean[] copyOfRange(boolean[] array, int from, int to) -
copyOfRange
public static byte[] copyOfRange(byte[] array, int from, int to) -
copyOfRange
public static char[] copyOfRange(char[] array, int from, int to) -
copyOfRange
public static short[] copyOfRange(short[] array, int from, int to) -
copyOfRange
public static int[] copyOfRange(int[] array, int from, int to) -
copyOfRange
public static long[] copyOfRange(long[] array, int from, int to) -
copyOfRange
public static float[] copyOfRange(float[] array, int from, int to) -
copyOfRange
public static double[] copyOfRange(double[] array, int from, int to) -
copyOfRange
public static <T> T[] copyOfRange(T[] original, int from, int to) -
copyOfRange
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
fill
public static void fill(long[] a, int fromIndex, int toIndex, long val) -
fill
public static void fill(long[] a, long val) -
fill
public static void fill(int[] a, int fromIndex, int toIndex, int val) -
fill
public static void fill(int[] a, int val) -
fill
public static void fill(short[] a, int fromIndex, int toIndex, short val) -
fill
public static void fill(short[] a, short val) -
fill
public static void fill(char[] a, int fromIndex, int toIndex, char val) -
fill
public static void fill(char[] a, char val) -
fill
public static void fill(byte[] a, int fromIndex, int toIndex, byte val) -
fill
public static void fill(byte[] a, byte val) -
fill
public static void fill(boolean[] a, int fromIndex, int toIndex, boolean val) -
fill
public static void fill(boolean[] a, boolean val) -
fill
public static void fill(float[] a, int fromIndex, int toIndex, float val) -
fill
public static void fill(float[] a, float val) -
fill
public static void fill(double[] a, int fromIndex, int toIndex, double val) -
fill
public static void fill(double[] a, double val) -
fill
-
fill
-
sort
public static void sort(int[] a, int fromIndex, int toIndex) -
sort
public static void sort(int[] a) -
sort
public static void sort(long[] a, int fromIndex, int toIndex) -
sort
public static void sort(long[] a) -
sort
public static void sort(short[] a, int fromIndex, int toIndex) -
sort
public static void sort(short[] a) -
sort
public static void sort(char[] a, int fromIndex, int toIndex) -
sort
public static void sort(char[] a) -
sort
public static void sort(byte[] a, int fromIndex, int toIndex) -
sort
public static void sort(byte[] a) -
sort
public static void sort(float[] a, int fromIndex, int toIndex) -
sort
public static void sort(float[] a) -
sort
public static void sort(double[] a, int fromIndex, int toIndex) -
sort
public static void sort(double[] a) -
sort
-
sort
-
sort
-
sort
-
binarySearch
public static int binarySearch(int[] a, int key) -
binarySearch
public static int binarySearch(int[] a, int fromIndex, int toIndex, int key) -
binarySearch
public static int binarySearch(long[] a, long key) -
binarySearch
public static int binarySearch(long[] a, int fromIndex, int toIndex, long key) -
binarySearch
public static int binarySearch(short[] a, short key) -
binarySearch
public static int binarySearch(short[] a, int fromIndex, int toIndex, short key) -
binarySearch
public static int binarySearch(char[] a, char key) -
binarySearch
public static int binarySearch(char[] a, int fromIndex, int toIndex, char key) -
binarySearch
public static int binarySearch(byte[] a, byte key) -
binarySearch
public static int binarySearch(byte[] a, int fromIndex, int toIndex, byte key) -
binarySearch
public static int binarySearch(double[] a, double key) -
binarySearch
public static int binarySearch(double[] a, int fromIndex, int toIndex, double key) -
binarySearch
public static int binarySearch(float[] a, float key) -
binarySearch
public static int binarySearch(float[] a, int fromIndex, int toIndex, float key) -
binarySearch
-
binarySearch
-
binarySearch
-
binarySearch
public static <T> int binarySearch(T[] a, int fromIndex, int toIndex, T key, TComparator<? super T> c) -
mismatch
public static int mismatch(long[] a, long[] a2) -
equals
public static boolean equals(long[] a, long[] a2) -
mismatch
public static int mismatch(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex) -
equals
public static boolean equals(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex) -
mismatch
public static int mismatch(int[] a, int[] a2) -
equals
public static boolean equals(int[] a, int[] a2) -
mismatch
public static int mismatch(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex) -
equals
public static boolean equals(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex) -
mismatch
public static int mismatch(short[] a, short[] a2) -
equals
public static boolean equals(short[] a, short[] a2) -
mismatch
public static int mismatch(short[] a, int aFromIndex, int aToIndex, short[] b, int bFromIndex, int bToIndex) -
equals
public static boolean equals(short[] a, int aFromIndex, int aToIndex, short[] b, int bFromIndex, int bToIndex) -
mismatch
public static int mismatch(char[] a, char[] a2) -
equals
public static boolean equals(char[] a, char[] a2) -
mismatch
public static int mismatch(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) -
equals
public static boolean equals(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) -
mismatch
public static int mismatch(byte[] a, byte[] a2) -
equals
public static boolean equals(byte[] a, byte[] a2) -
mismatch
public static int mismatch(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) -
equals
public static boolean equals(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) -
mismatch
public static int mismatch(float[] a, float[] a2) -
equals
public static boolean equals(float[] a, float[] a2) -
mismatch
public static int mismatch(float[] a, int aFromIndex, int aToIndex, float[] b, int bFromIndex, int bToIndex) -
equals
public static boolean equals(float[] a, int aFromIndex, int aToIndex, float[] b, int bFromIndex, int bToIndex) -
mismatch
public static int mismatch(double[] a, double[] a2) -
equals
public static boolean equals(double[] a, double[] a2) -
mismatch
public static int mismatch(double[] a, int aFromIndex, int aToIndex, double[] b, int bFromIndex, int bToIndex) -
equals
public static boolean equals(double[] a, int aFromIndex, int aToIndex, double[] b, int bFromIndex, int bToIndex) -
mismatch
public static int mismatch(boolean[] a, boolean[] a2) -
equals
public static boolean equals(boolean[] a, boolean[] a2) -
mismatch
public static int mismatch(boolean[] a, int aFromIndex, int aToIndex, boolean[] b, int bFromIndex, int bToIndex) -
equals
public static boolean equals(boolean[] a, int aFromIndex, int aToIndex, boolean[] b, int bFromIndex, int bToIndex) -
mismatch
-
equals
-
mismatch
-
equals
-
hashCode
public static int hashCode(boolean[] a) -
hashCode
public static int hashCode(long[] a) -
hashCode
public static int hashCode(int[] a) -
hashCode
public static int hashCode(byte[] a) -
hashCode
public static int hashCode(short[] a) -
hashCode
public static int hashCode(char[] a) -
hashCode
public static int hashCode(float[] a) -
hashCode
public static int hashCode(double[] a) -
hashCode
-
deepHashCode
-
deepEquals
-
asList
-
deepToString
-
stream
-
stream
-
stream
-
stream
-
stream
-
stream
-
stream
-
stream
-
setAll
-
setAll
-
setAll
-
setAll
-