public class TArrays extends TObject
Constructor and Description |
---|
TArrays() |
Modifier and Type | Method and Description |
---|---|
static <T> TList<T> |
asList(T... a) |
static int |
binarySearch(byte[] a,
byte key) |
static int |
binarySearch(byte[] a,
int fromIndex,
int toIndex,
byte key) |
static int |
binarySearch(char[] a,
char key) |
static int |
binarySearch(char[] a,
int fromIndex,
int toIndex,
char key) |
static int |
binarySearch(double[] a,
double key) |
static int |
binarySearch(double[] a,
int fromIndex,
int toIndex,
double key) |
static int |
binarySearch(float[] a,
float key) |
static int |
binarySearch(float[] a,
int fromIndex,
int toIndex,
float key) |
static int |
binarySearch(int[] a,
int key) |
static int |
binarySearch(int[] a,
int fromIndex,
int toIndex,
int key) |
static int |
binarySearch(long[] a,
int fromIndex,
int toIndex,
long key) |
static int |
binarySearch(long[] a,
long key) |
static int |
binarySearch(Object[] a,
int fromIndex,
int toIndex,
Object key) |
static int |
binarySearch(Object[] a,
Object key) |
static int |
binarySearch(short[] a,
int fromIndex,
int toIndex,
short key) |
static int |
binarySearch(short[] a,
short key) |
static <T> int |
binarySearch(T[] a,
int fromIndex,
int toIndex,
T key,
TComparator<? super T> c) |
static <T> int |
binarySearch(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[] |
copyOf(U[] original,
int newLength,
Class<? extends T[]> cls) |
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 boolean |
deepEquals(Object[] a1,
Object[] a2) |
static int |
deepHashCode(Object[] a) |
static String |
deepToString(Object[] a) |
static boolean |
equals(boolean[] a,
boolean[] a2) |
static boolean |
equals(byte[] a,
byte[] a2) |
static boolean |
equals(char[] a,
char[] a2) |
static boolean |
equals(double[] a,
double[] a2) |
static boolean |
equals(float[] a,
float[] a2) |
static boolean |
equals(int[] a,
int[] a2) |
static boolean |
equals(long[] a,
long[] a2) |
static boolean |
equals(Object[] a,
Object[] a2) |
static boolean |
equals(short[] a,
short[] a2) |
static void |
fill(boolean[] a,
boolean val) |
static void |
fill(boolean[] a,
int fromIndex,
int toIndex,
boolean val) |
static void |
fill(byte[] a,
byte val) |
static void |
fill(byte[] a,
int fromIndex,
int toIndex,
byte val) |
static void |
fill(char[] a,
char val) |
static void |
fill(char[] a,
int fromIndex,
int toIndex,
char val) |
static void |
fill(double[] a,
double val) |
static void |
fill(double[] a,
int fromIndex,
int toIndex,
double val) |
static void |
fill(float[] a,
float val) |
static void |
fill(float[] a,
int fromIndex,
int toIndex,
float val) |
static void |
fill(int[] a,
int val) |
static void |
fill(int[] a,
int fromIndex,
int toIndex,
int val) |
static void |
fill(long[] a,
int fromIndex,
int toIndex,
long val) |
static void |
fill(long[] a,
long val) |
static void |
fill(short[] a,
int fromIndex,
int toIndex,
short val) |
static void |
fill(short[] a,
short val) |
static void |
fill(TObject[] a,
int fromIndex,
int toIndex,
TObject val) |
static void |
fill(TObject[] a,
TObject val) |
static int |
hashCode(boolean[] a) |
static int |
hashCode(byte[] a) |
static int |
hashCode(char[] a) |
static int |
hashCode(double[] a) |
static int |
hashCode(float[] a) |
static int |
hashCode(int[] a) |
static int |
hashCode(long[] a) |
static int |
hashCode(Object[] a) |
static int |
hashCode(short[] a) |
static void |
setAll(double[] array,
IntToDoubleFunction generator) |
static void |
setAll(int[] array,
IntUnaryOperator generator) |
static void |
setAll(long[] array,
IntToLongFunction generator) |
static <T> void |
setAll(T[] array,
IntFunction<? extends T> generator) |
static void |
sort(byte[] a) |
static void |
sort(byte[] a,
int fromIndex,
int toIndex) |
static void |
sort(char[] a) |
static void |
sort(char[] a,
int fromIndex,
int toIndex) |
static void |
sort(double[] a) |
static void |
sort(double[] a,
int fromIndex,
int toIndex) |
static void |
sort(float[] a) |
static void |
sort(float[] a,
int fromIndex,
int toIndex) |
static void |
sort(int[] a) |
static void |
sort(int[] a,
int fromIndex,
int toIndex) |
static void |
sort(long[] a) |
static void |
sort(long[] a,
int fromIndex,
int toIndex) |
static void |
sort(Object[] a) |
static void |
sort(Object[] a,
int fromIndex,
int toIndex) |
static void |
sort(short[] a) |
static void |
sort(short[] a,
int fromIndex,
int toIndex) |
static <T> void |
sort(T[] a,
int fromIndex,
int toIndex,
TComparator<? super T> c) |
static <T> void |
sort(T[] a,
TComparator<? super T> c) |
static TDoubleStream |
stream(double[] array) |
static TDoubleStream |
stream(double[] array,
int startInclusive,
int endExclusive) |
static TIntStream |
stream(int[] array) |
static TIntStream |
stream(int[] array,
int startInclusive,
int endExclusive) |
static TLongStream |
stream(long[] array) |
static TLongStream |
stream(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 String |
toString(boolean[] a) |
static String |
toString(byte[] a) |
static String |
toString(char[] a) |
static String |
toString(double[] a) |
static String |
toString(float[] a) |
static String |
toString(int[] a) |
static String |
toString(long[] a) |
static String |
toString(short[] a) |
static String |
toString(TObject[] a) |
public static char[] copyOf(char[] array, int length)
public static byte[] copyOf(byte[] array, int length)
public static short[] copyOf(short[] array, int length)
public static int[] copyOf(int[] array, int length)
public static long[] copyOf(long[] array, int length)
public static float[] copyOf(float[] array, int length)
public static double[] copyOf(double[] array, int length)
public static boolean[] copyOf(boolean[] array, int length)
public static <T> T[] copyOf(T[] original, int newLength)
public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> cls)
public static boolean[] copyOfRange(boolean[] array, int from, int to)
public static byte[] copyOfRange(byte[] array, int from, int to)
public static char[] copyOfRange(char[] array, int from, int to)
public static short[] copyOfRange(short[] array, int from, int to)
public static int[] copyOfRange(int[] array, int from, int to)
public static long[] copyOfRange(long[] array, int from, int to)
public static float[] copyOfRange(float[] array, int from, int to)
public static double[] copyOfRange(double[] array, int from, int to)
public static <T> T[] copyOfRange(T[] original, int from, int to)
public static <T,U> T[] copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType)
public static String toString(boolean[] a)
public static String toString(byte[] a)
public static String toString(short[] a)
public static String toString(char[] a)
public static String toString(int[] a)
public static String toString(long[] a)
public static String toString(float[] a)
public static String toString(double[] a)
public static void fill(long[] a, int fromIndex, int toIndex, long val)
public static void fill(long[] a, long val)
public static void fill(int[] a, int fromIndex, int toIndex, int val)
public static void fill(int[] a, int val)
public static void fill(short[] a, int fromIndex, int toIndex, short val)
public static void fill(short[] a, short val)
public static void fill(char[] a, int fromIndex, int toIndex, char val)
public static void fill(char[] a, char val)
public static void fill(byte[] a, int fromIndex, int toIndex, byte val)
public static void fill(byte[] a, byte val)
public static void fill(boolean[] a, int fromIndex, int toIndex, boolean val)
public static void fill(boolean[] a, boolean val)
public static void fill(float[] a, int fromIndex, int toIndex, float val)
public static void fill(float[] a, float val)
public static void fill(double[] a, int fromIndex, int toIndex, double val)
public static void fill(double[] a, double val)
public static void sort(int[] a, int fromIndex, int toIndex)
public static void sort(int[] a)
public static void sort(long[] a, int fromIndex, int toIndex)
public static void sort(long[] a)
public static void sort(short[] a, int fromIndex, int toIndex)
public static void sort(short[] a)
public static void sort(char[] a, int fromIndex, int toIndex)
public static void sort(char[] a)
public static void sort(byte[] a, int fromIndex, int toIndex)
public static void sort(byte[] a)
public static void sort(float[] a, int fromIndex, int toIndex)
public static void sort(float[] a)
public static void sort(double[] a, int fromIndex, int toIndex)
public static void sort(double[] a)
public static void sort(Object[] a)
public static void sort(Object[] a, int fromIndex, int toIndex)
public static <T> void sort(T[] a, int fromIndex, int toIndex, TComparator<? super T> c)
public static <T> void sort(T[] a, TComparator<? super T> c)
public static int binarySearch(int[] a, int key)
public static int binarySearch(int[] a, int fromIndex, int toIndex, int key)
public static int binarySearch(long[] a, long key)
public static int binarySearch(long[] a, int fromIndex, int toIndex, long key)
public static int binarySearch(short[] a, short key)
public static int binarySearch(short[] a, int fromIndex, int toIndex, short key)
public static int binarySearch(char[] a, char key)
public static int binarySearch(char[] a, int fromIndex, int toIndex, char key)
public static int binarySearch(byte[] a, byte key)
public static int binarySearch(byte[] a, int fromIndex, int toIndex, byte key)
public static int binarySearch(double[] a, double key)
public static int binarySearch(double[] a, int fromIndex, int toIndex, double key)
public static int binarySearch(float[] a, float key)
public static int binarySearch(float[] a, int fromIndex, int toIndex, float key)
public static <T> int binarySearch(T[] a, T key, TComparator<? super T> c)
public static <T> int binarySearch(T[] a, int fromIndex, int toIndex, T key, TComparator<? super T> c)
public static boolean equals(long[] a, long[] a2)
public static boolean equals(int[] a, int[] a2)
public static boolean equals(short[] a, short[] a2)
public static boolean equals(char[] a, char[] a2)
public static boolean equals(byte[] a, byte[] a2)
public static boolean equals(float[] a, float[] a2)
public static boolean equals(double[] a, double[] a2)
public static boolean equals(boolean[] a, boolean[] a2)
public static int hashCode(boolean[] a)
public static int hashCode(long[] a)
public static int hashCode(int[] a)
public static int hashCode(byte[] a)
public static int hashCode(short[] a)
public static int hashCode(char[] a)
public static int hashCode(float[] a)
public static int hashCode(double[] a)
public static int hashCode(Object[] a)
public static int deepHashCode(Object[] a)
@SafeVarargs public static <T> TList<T> asList(T... a)
public static <T> TStream<T> stream(T[] array)
public static <T> TStream<T> stream(T[] array, int startInclusive, int endExclusive)
public static TIntStream stream(int[] array)
public static TIntStream stream(int[] array, int startInclusive, int endExclusive)
public static TLongStream stream(long[] array)
public static TLongStream stream(long[] array, int startInclusive, int endExclusive)
public static TDoubleStream stream(double[] array)
public static TDoubleStream stream(double[] array, int startInclusive, int endExclusive)
public static <T> void setAll(T[] array, IntFunction<? extends T> generator)
public static void setAll(int[] array, IntUnaryOperator generator)
public static void setAll(long[] array, IntToLongFunction generator)
public static void setAll(double[] array, IntToDoubleFunction generator)
Copyright © 2019. All rights reserved.