程序包 dev.utils.common
类 ArrayUtils
java.lang.Object
dev.utils.common.ArrayUtils
detail: Array 数组工具类
- 作者:
- Ttt
// 升序 Arrays.sort(arrays); // 降序 ( 只能对对象数组降序 ) Arrays.sort(arrays, Collections.reverseOrder());
-
方法概要
修饰符和类型方法说明static StringappendToString(boolean[] data) 追加数组内容字符串static StringappendToString(byte[] data) 追加数组内容字符串static StringappendToString(char[] data) 追加数组内容字符串static StringappendToString(double[] data) 追加数组内容字符串static StringappendToString(float[] data) 追加数组内容字符串static StringappendToString(int[] data) 追加数组内容字符串static StringappendToString(long[] data) 追加数组内容字符串static StringappendToString(short[] data) 追加数组内容字符串static <T> StringappendToString(T[] data) 追加数组内容字符串static boolean[]arrayCopy(boolean[] prefix, boolean[] suffix) 拼接数组static byte[]arrayCopy(byte[] prefix, byte[] suffix) 拼接数组static char[]arrayCopy(char[] prefix, char[] suffix) 拼接数组static double[]arrayCopy(double[] prefix, double[] suffix) 拼接数组static float[]arrayCopy(float[] prefix, float[] suffix) 拼接数组static int[]arrayCopy(int[] prefix, int[] suffix) 拼接数组static long[]arrayCopy(long[] prefix, long[] suffix) 拼接数组static short[]arrayCopy(short[] prefix, short[] suffix) 拼接数组static <T> T[]arrayCopy(T[] prefix, T[] suffix) 拼接数组asList(boolean[] booleans) 转换数组为集合asList(byte[] bytes) 转换数组为集合asList(char[] chars) 转换数组为集合asList(double[] doubles) 转换数组为集合asList(float[] floats) 转换数组为集合asList(int[] ints) 转换数组为集合asList(long[] longs) 转换数组为集合asList(short[] shorts) 转换数组为集合static <T> List<T>asList(T[] array) 转换数组为集合static <T> List<T>asListArgs(T... array) 转换数组为集合asListArgsBoolean(boolean... booleans) 转换数组为集合asListArgsByte(byte... bytes) 转换数组为集合asListArgsChar(char... chars) 转换数组为集合asListArgsDouble(double... doubles) 转换数组为集合asListArgsFloat(float... floats) 转换数组为集合asListArgsInt(int... ints) 转换数组为集合asListArgsLong(long... longs) 转换数组为集合asListArgsShort(short... shorts) 转换数组为集合static Boolean[]booleansToBooleans(boolean[] booleans) boolean[] 转换 Boolean[]static boolean[]booleansToBooleans(Boolean[] booleans, boolean defaultValue) Boolean[] 转换 boolean[]static Byte[]bytesToBytes(byte[] bytes) byte[] 转换 Byte[]static byte[]bytesToBytes(Byte[] bytes, byte defaultValue) Byte[] 转换 byte[]static char[]charactersToChars(Character[] characters, char defaultValue) Character[] 转换 char[]static Character[]charsToCharacters(char[] chars) char[] 转换 Character[]static Double[]doublesToDoubles(double[] doubles) double[] 转换 Double[]static double[]doublesToDoubles(Double[] doubles, double defaultValue) Double[] 转换 double[]static <T> booleanequals(T value1, T value2) 判断两个值是否一样static Float[]floatsToFloats(float[] floats) float[] 转换 Float[]static float[]floatsToFloats(Float[] floats, float defaultValue) Float[] 转换 float[]static booleanget(boolean[] array, boolean value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static booleanget(boolean[] booleans, int pos) 获取数组对应索引数据static booleanget(boolean[] booleans, int pos, boolean defaultValue) 获取数组对应索引数据static byteget(byte[] array, byte value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static byteget(byte[] bytes, int pos) 获取数组对应索引数据static byteget(byte[] bytes, int pos, byte defaultValue) 获取数组对应索引数据static charget(char[] array, char value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static charget(char[] chars, int pos) 获取数组对应索引数据static charget(char[] chars, int pos, char defaultValue) 获取数组对应索引数据static doubleget(double[] array, double value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static doubleget(double[] doubles, int pos) 获取数组对应索引数据static doubleget(double[] doubles, int pos, double defaultValue) 获取数组对应索引数据static floatget(float[] array, float value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static floatget(float[] floats, int pos) 获取数组对应索引数据static floatget(float[] floats, int pos, float defaultValue) 获取数组对应索引数据static intget(int[] ints, int pos) 获取数组对应索引数据static intget(int[] ints, int pos, int defaultValue) 获取数组对应索引数据static intget(int[] array, int value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static longget(long[] longs, int pos) 获取数组对应索引数据static longget(long[] longs, int pos, long defaultValue) 获取数组对应索引数据static longget(long[] array, long value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static shortget(short[] shorts, int pos) 获取数组对应索引数据static shortget(short[] shorts, int pos, short defaultValue) 获取数组对应索引数据static shortget(short[] array, short value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static <T> Tget(T[] array, int pos) 获取数组对应索引数据static <T> Tget(T[] array, int pos, T defaultValue) 获取数组对应索引数据static <T> Tget(T[] array, T value) 根据指定 value 获取 value 所在位置 + 偏移量的值static <T> Tget(T[] array, T value, boolean notNull) 根据指定 value 获取 value 所在位置 + 偏移量的值static <T> Tget(T[] array, T value, int number) 根据指定 value 获取 value 所在位置 + 偏移量的值static <T> Tget(T[] array, T value, int number, boolean notNull) 根据指定 value 获取 value 所在位置 + 偏移量的值static <T> Tget(T[] array, T value, int number, boolean notNull, int offset) 根据指定值获取 value 所在位置 + 偏移量的值static <T> TgetByArray(Object array, int pos) 获取数组对应索引数据static <T> TgetByArray(Object array, int pos, T defaultValue) 获取数组对应索引数据static int获取数组长度总和static booleangetFirst(boolean[] booleans) 获取数组第一条数据static bytegetFirst(byte[] bytes) 获取数组第一条数据static chargetFirst(char[] chars) 获取数组第一条数据static doublegetFirst(double[] doubles) 获取数组第一条数据static floatgetFirst(float[] floats) 获取数组第一条数据static intgetFirst(int[] ints) 获取数组第一条数据static longgetFirst(long[] longs) 获取数组第一条数据static shortgetFirst(short[] shorts) 获取数组第一条数据static <T> TgetFirst(T[] array) 获取数组第一条数据static booleangetLast(boolean[] booleans) 获取数组最后一条数据static bytegetLast(byte[] bytes) 获取数组最后一条数据static chargetLast(char[] chars) 获取数组最后一条数据static doublegetLast(double[] doubles) 获取数组最后一条数据static floatgetLast(float[] floats) 获取数组最后一条数据static intgetLast(int[] ints) 获取数组最后一条数据static longgetLast(long[] longs) 获取数组最后一条数据static shortgetLast(short[] shorts) 获取数组最后一条数据static <T> TgetLast(T[] array) 获取数组最后一条数据static doublegetMaximum(double[] data) 获取数组中最大值static floatgetMaximum(float[] data) 获取数组中最大值static intgetMaximum(int[] data) 获取数组中最大值static longgetMaximum(long[] data) 获取数组中最大值static intgetMaximumIndex(double[] data) 获取数组中最大值索引static intgetMaximumIndex(float[] data) 获取数组中最大值索引static intgetMaximumIndex(int[] data) 获取数组中最大值索引static intgetMaximumIndex(long[] data) 获取数组中最大值索引static doublegetMinimum(double[] data) 获取数组中最小值static floatgetMinimum(float[] data) 获取数组中最小值static intgetMinimum(int[] data) 获取数组中最小值static longgetMinimum(long[] data) 获取数组中最小值static intgetMinimumIndex(double[] data) 获取数组中最小值索引static intgetMinimumIndex(float[] data) 获取数组中最小值索引static intgetMinimumIndex(int[] data) 获取数组中最小值索引static intgetMinimumIndex(long[] data) 获取数组中最小值索引static <T> TgetNotNull(T[] array, T value) 根据指定 value 获取 value 所在位置 + 偏移量的值, 不允许值为 nullstatic <T> TgetNotNull(T[] array, T value, int number) 根据指定 value 获取 value 所在位置 + 偏移量的值, 不允许值为 nullstatic intgetPosition(boolean[] array, boolean value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static intgetPosition(byte[] array, byte value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static intgetPosition(char[] array, char value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static intgetPosition(double[] array, double value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static intgetPosition(float[] array, float value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static intgetPosition(int[] array, int value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static intgetPosition(long[] array, long value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static intgetPosition(short[] array, short value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static <T> intgetPosition(T[] array, T value) 根据指定 value 获取索引static <T> intgetPosition(T[] array, T value, boolean notNull) 根据指定 value 获取索引static <T> intgetPosition(T[] array, T value, int number) 根据指定 value 获取索引static <T> intgetPosition(T[] array, T value, int number, boolean notNull) 根据指定 value 获取索引static <T> intgetPosition(T[] array, T value, int number, boolean notNull, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引static <T> intgetPositionNotNull(T[] array, T value) 根据指定 value 获取索引, 不允许值为 nullstatic <T> intgetPositionNotNull(T[] array, T value, int number) 根据指定 value 获取索引, 不允许值为 nullstatic int[]integersToInts(Integer[] integers, int defaultValue) Integer[] 转换 int[]static Integer[]intsToIntegers(int[] ints) int[] 转换 Integer[]static booleanisEmpty(boolean[] booleans) 判断数组是否为 nullstatic booleanisEmpty(byte[] bytes) 判断数组是否为 nullstatic booleanisEmpty(char[] chars) 判断数组是否为 nullstatic booleanisEmpty(double[] doubles) 判断数组是否为 nullstatic booleanisEmpty(float[] floats) 判断数组是否为 nullstatic booleanisEmpty(int[] ints) 判断数组是否为 nullstatic booleanisEmpty(long[] longs) 判断数组是否为 nullstatic booleanisEmpty(short[] shorts) 判断数组是否为 nullstatic boolean判断数组是否为 nullstatic boolean判断数组是否为 nullstatic booleanisLength(boolean[] booleans, int length) 判断数组长度是否等于期望长度static booleanisLength(byte[] bytes, int length) 判断数组长度是否等于期望长度static booleanisLength(char[] chars, int length) 判断数组长度是否等于期望长度static booleanisLength(double[] doubles, int length) 判断数组长度是否等于期望长度static booleanisLength(float[] floats, int length) 判断数组长度是否等于期望长度static booleanisLength(int[] ints, int length) 判断数组长度是否等于期望长度static booleanisLength(long[] longs, int length) 判断数组长度是否等于期望长度static booleanisLength(short[] shorts, int length) 判断数组长度是否等于期望长度static boolean判断数组长度是否等于期望长度static boolean判断数组长度是否等于期望长度static booleanisNotEmpty(boolean[] booleans) 判断数组是否不为 nullstatic booleanisNotEmpty(byte[] bytes) 判断数组是否不为 nullstatic booleanisNotEmpty(char[] chars) 判断数组是否不为 nullstatic booleanisNotEmpty(double[] doubles) 判断数组是否不为 nullstatic booleanisNotEmpty(float[] floats) 判断数组是否不为 nullstatic booleanisNotEmpty(int[] ints) 判断数组是否不为 nullstatic booleanisNotEmpty(long[] longs) 判断数组是否不为 nullstatic booleanisNotEmpty(short[] shorts) 判断数组是否不为 nullstatic booleanisNotEmpty(Object object) 判断数组是否不为 nullstatic booleanisNotEmpty(Object[] objects) 判断数组是否不为 nullstatic intlength(boolean[] booleans) 获取数组长度static intlength(boolean[] booleans, int defaultLength) 获取数组长度static intlength(byte[] bytes) 获取数组长度static intlength(byte[] bytes, int defaultLength) 获取数组长度static intlength(char[] chars) 获取数组长度static intlength(char[] chars, int defaultLength) 获取数组长度static intlength(double[] doubles) 获取数组长度static intlength(double[] doubles, int defaultLength) 获取数组长度static intlength(float[] floats) 获取数组长度static intlength(float[] floats, int defaultLength) 获取数组长度static intlength(int[] ints) 获取数组长度static intlength(int[] ints, int defaultLength) 获取数组长度static intlength(long[] longs) 获取数组长度static intlength(long[] longs, int defaultLength) 获取数组长度static intlength(short[] shorts) 获取数组长度static intlength(short[] shorts, int defaultLength) 获取数组长度static int获取数组长度static int获取数组长度static int获取数组长度static int获取数组长度static Long[]longsToLongs(long[] longs) long[] 转换 Long[]static long[]longsToLongs(Long[] longs, long defaultValue) Long[] 转换 long[]static boolean[]newArray(boolean[] data, int length) 创建指定长度数组static byte[]newArray(byte[] data, int length) 创建指定长度数组static char[]newArray(char[] data, int length) 创建指定长度数组static double[]newArray(double[] data, int length) 创建指定长度数组static float[]newArray(float[] data, int length) 创建指定长度数组static int[]newArray(int[] data, int length) 创建指定长度数组static long[]newArray(long[] data, int length) 创建指定长度数组static short[]newArray(short[] data, int length) 创建指定长度数组static <T> T[]newArray(T[] data, int length) 创建指定长度数组static Short[]shortsToShorts(short[] shorts) short[] 转换 Short[]static short[]shortsToShorts(Short[] shorts, short defaultValue) Short[] 转换 short[]static boolean[]subArray(boolean[] data, int off, int length) 从数组上截取一段static byte[]subArray(byte[] data, int off, int length) 从数组上截取一段static char[]subArray(char[] data, int off, int length) 从数组上截取一段static double[]subArray(double[] data, int off, int length) 从数组上截取一段static float[]subArray(float[] data, int off, int length) 从数组上截取一段static int[]subArray(int[] data, int off, int length) 从数组上截取一段static long[]subArray(long[] data, int off, int length) 从数组上截取一段static short[]subArray(short[] data, int off, int length) 从数组上截取一段static <T> T[]subArray(T[] data, int off, int length) 从数组上截取一段static doublesumArray(double[] data) 计算数组总和static doublesumArray(double[] data, int end) 计算数组总和static doublesumArray(double[] data, int end, double extra) 计算数组总和static doublesumArray(double[] data, int start, int end, double extra) 计算数组总和static floatsumArray(float[] data) 计算数组总和static floatsumArray(float[] data, int end) 计算数组总和static floatsumArray(float[] data, int end, float extra) 计算数组总和static floatsumArray(float[] data, int start, int end, float extra) 计算数组总和static intsumArray(int[] data) 计算数组总和static intsumArray(int[] data, int end) 计算数组总和static intsumArray(int[] data, int end, int extra) 计算数组总和static intsumArray(int[] data, int start, int end, int extra) 计算数组总和static longsumArray(long[] data) 计算数组总和static longsumArray(long[] data, int end) 计算数组总和static longsumArray(long[] data, int start, int end, long extra) 计算数组总和static longsumArray(long[] data, int end, long extra) 计算数组总和
-
方法详细资料
-
isEmpty
判断数组是否为 null- 参数:
objects- object[]- 返回:
trueyes,falseno
-
isEmpty
public static boolean isEmpty(int[] ints) 判断数组是否为 null- 参数:
ints- int[]- 返回:
trueyes,falseno
-
isEmpty
public static boolean isEmpty(byte[] bytes) 判断数组是否为 null- 参数:
bytes- byte[]- 返回:
trueyes,falseno
-
isEmpty
public static boolean isEmpty(char[] chars) 判断数组是否为 null- 参数:
chars- char[]- 返回:
trueyes,falseno
-
isEmpty
public static boolean isEmpty(short[] shorts) 判断数组是否为 null- 参数:
shorts- short[]- 返回:
trueyes,falseno
-
isEmpty
public static boolean isEmpty(long[] longs) 判断数组是否为 null- 参数:
longs- long[]- 返回:
trueyes,falseno
-
isEmpty
public static boolean isEmpty(float[] floats) 判断数组是否为 null- 参数:
floats- float[]- 返回:
trueyes,falseno
-
isEmpty
public static boolean isEmpty(double[] doubles) 判断数组是否为 null- 参数:
doubles- double[]- 返回:
trueyes,falseno
-
isEmpty
public static boolean isEmpty(boolean[] booleans) 判断数组是否为 null- 参数:
booleans- boolean[]- 返回:
trueyes,falseno
-
isEmpty
判断数组是否为 null- 参数:
object- Array[]- 返回:
trueyes,falseno
-
isNotEmpty
判断数组是否不为 null- 参数:
objects- object[]- 返回:
trueyes,falseno
-
isNotEmpty
public static boolean isNotEmpty(int[] ints) 判断数组是否不为 null- 参数:
ints- int[]- 返回:
trueyes,falseno
-
isNotEmpty
public static boolean isNotEmpty(byte[] bytes) 判断数组是否不为 null- 参数:
bytes- byte[]- 返回:
trueyes,falseno
-
isNotEmpty
public static boolean isNotEmpty(char[] chars) 判断数组是否不为 null- 参数:
chars- char[]- 返回:
trueyes,falseno
-
isNotEmpty
public static boolean isNotEmpty(short[] shorts) 判断数组是否不为 null- 参数:
shorts- short[]- 返回:
trueyes,falseno
-
isNotEmpty
public static boolean isNotEmpty(long[] longs) 判断数组是否不为 null- 参数:
longs- long[]- 返回:
trueyes,falseno
-
isNotEmpty
public static boolean isNotEmpty(float[] floats) 判断数组是否不为 null- 参数:
floats- float[]- 返回:
trueyes,falseno
-
isNotEmpty
public static boolean isNotEmpty(double[] doubles) 判断数组是否不为 null- 参数:
doubles- double[]- 返回:
trueyes,falseno
-
isNotEmpty
public static boolean isNotEmpty(boolean[] booleans) 判断数组是否不为 null- 参数:
booleans- boolean[]- 返回:
trueyes,falseno
-
isNotEmpty
判断数组是否不为 null- 参数:
object- Array[]- 返回:
trueyes,falseno
-
length
获取数组长度- 参数:
objects- object[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
public static int length(int[] ints) 获取数组长度- 参数:
ints- int[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
public static int length(byte[] bytes) 获取数组长度- 参数:
bytes- byte[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
public static int length(char[] chars) 获取数组长度- 参数:
chars- char[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
public static int length(short[] shorts) 获取数组长度- 参数:
shorts- short[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
public static int length(long[] longs) 获取数组长度- 参数:
longs- long[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
public static int length(float[] floats) 获取数组长度- 参数:
floats- float[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
public static int length(double[] doubles) 获取数组长度- 参数:
doubles- double[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
public static int length(boolean[] booleans) 获取数组长度- 参数:
booleans- boolean[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
获取数组长度- 参数:
object- Array[]- 返回:
- 如果数据为 null, 则返回默认长度, 如果不为 null, 则返回 array[].length
-
length
获取数组长度- 参数:
objects- object[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
public static int length(int[] ints, int defaultLength) 获取数组长度- 参数:
ints- int[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
public static int length(byte[] bytes, int defaultLength) 获取数组长度- 参数:
bytes- byte[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
public static int length(char[] chars, int defaultLength) 获取数组长度- 参数:
chars- char[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
public static int length(short[] shorts, int defaultLength) 获取数组长度- 参数:
shorts- short[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
public static int length(long[] longs, int defaultLength) 获取数组长度- 参数:
longs- long[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
public static int length(float[] floats, int defaultLength) 获取数组长度- 参数:
floats- float[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
public static int length(double[] doubles, int defaultLength) 获取数组长度- 参数:
doubles- double[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
public static int length(boolean[] booleans, int defaultLength) 获取数组长度- 参数:
booleans- boolean[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
length
获取数组长度- 参数:
object- Array[]defaultLength- 数组为 null 时, 返回的长度- 返回:
- 如果数据为 null, 则返回 defaultLength, 如果不为 null, 则返回 array[].length
-
isLength
判断数组长度是否等于期望长度- 参数:
objects- object[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
public static boolean isLength(int[] ints, int length) 判断数组长度是否等于期望长度- 参数:
ints- int[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
public static boolean isLength(byte[] bytes, int length) 判断数组长度是否等于期望长度- 参数:
bytes- byte[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
public static boolean isLength(char[] chars, int length) 判断数组长度是否等于期望长度- 参数:
chars- char[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
public static boolean isLength(short[] shorts, int length) 判断数组长度是否等于期望长度- 参数:
shorts- short[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
public static boolean isLength(long[] longs, int length) 判断数组长度是否等于期望长度- 参数:
longs- long[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
public static boolean isLength(float[] floats, int length) 判断数组长度是否等于期望长度- 参数:
floats- float[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
public static boolean isLength(double[] doubles, int length) 判断数组长度是否等于期望长度- 参数:
doubles- double[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
public static boolean isLength(boolean[] booleans, int length) 判断数组长度是否等于期望长度- 参数:
booleans- boolean[]length- 期望长度- 返回:
trueyes,falseno
-
isLength
判断数组长度是否等于期望长度- 参数:
object- Array[]length- 期望长度- 返回:
trueyes,falseno
-
getCount
获取数组长度总和- 参数:
objects- Array[]- 返回:
- 数组长度总和
-
getByArray
获取数组对应索引数据- 类型参数:
T- 泛型- 参数:
array- 数组pos- 索引- 返回:
- 数组指定索引的值
-
getByArray
获取数组对应索引数据- 类型参数:
T- 泛型- 参数:
array- 数组pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值
-
get
public static <T> T get(T[] array, int pos) 获取数组对应索引数据- 类型参数:
T- 泛型- 参数:
array- 数组pos- 索引- 返回:
- 数组指定索引的值
-
get
public static int get(int[] ints, int pos) 获取数组对应索引数据- 参数:
ints- int[]pos- 索引- 返回:
- 数组指定索引的值
-
get
public static byte get(byte[] bytes, int pos) 获取数组对应索引数据- 参数:
bytes- byte[]pos- 索引- 返回:
- 数组指定索引的值
-
get
public static char get(char[] chars, int pos) 获取数组对应索引数据- 参数:
chars- char[]pos- 索引- 返回:
- 数组指定索引的值
-
get
public static short get(short[] shorts, int pos) 获取数组对应索引数据- 参数:
shorts- short[]pos- 索引- 返回:
- 数组指定索引的值
-
get
public static long get(long[] longs, int pos) 获取数组对应索引数据- 参数:
longs- long[]pos- 索引- 返回:
- 数组指定索引的值
-
get
public static float get(float[] floats, int pos) 获取数组对应索引数据- 参数:
floats- float[]pos- 索引- 返回:
- 数组指定索引的值
-
get
public static double get(double[] doubles, int pos) 获取数组对应索引数据- 参数:
doubles- double[]pos- 索引- 返回:
- 数组指定索引的值
-
get
public static boolean get(boolean[] booleans, int pos) 获取数组对应索引数据- 参数:
booleans- boolean[]pos- 索引- 返回:
- 数组指定索引的值
-
get
public static <T> T get(T[] array, int pos, T defaultValue) 获取数组对应索引数据- 类型参数:
T- 泛型- 参数:
array- 数组pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
get
public static int get(int[] ints, int pos, int defaultValue) 获取数组对应索引数据- 参数:
ints- int[]pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
get
public static byte get(byte[] bytes, int pos, byte defaultValue) 获取数组对应索引数据- 参数:
bytes- byte[]pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
get
public static char get(char[] chars, int pos, char defaultValue) 获取数组对应索引数据- 参数:
chars- char[]pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
get
public static short get(short[] shorts, int pos, short defaultValue) 获取数组对应索引数据- 参数:
shorts- short[]pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
get
public static long get(long[] longs, int pos, long defaultValue) 获取数组对应索引数据- 参数:
longs- long[]pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
get
public static float get(float[] floats, int pos, float defaultValue) 获取数组对应索引数据- 参数:
floats- float[]pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
get
public static double get(double[] doubles, int pos, double defaultValue) 获取数组对应索引数据- 参数:
doubles- double[]pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
get
public static boolean get(boolean[] booleans, int pos, boolean defaultValue) 获取数组对应索引数据- 参数:
booleans- boolean[]pos- 索引defaultValue- 默认值- 返回:
- 数组指定索引的值, 如果获取失败, 则返回 defaultValue
-
getFirst
public static <T> T getFirst(T[] array) 获取数组第一条数据- 类型参数:
T- 泛型- 参数:
array- 数组- 返回:
- 数组索引为 0 的值
-
getFirst
public static int getFirst(int[] ints) 获取数组第一条数据- 参数:
ints- int[]- 返回:
- 数组索引为 0 的值
-
getFirst
public static byte getFirst(byte[] bytes) 获取数组第一条数据- 参数:
bytes- byte[]- 返回:
- 数组索引为 0 的值
-
getFirst
public static char getFirst(char[] chars) 获取数组第一条数据- 参数:
chars- char[]- 返回:
- 数组索引为 0 的值
-
getFirst
public static short getFirst(short[] shorts) 获取数组第一条数据- 参数:
shorts- short[]- 返回:
- 数组索引为 0 的值
-
getFirst
public static long getFirst(long[] longs) 获取数组第一条数据- 参数:
longs- long[]- 返回:
- 数组索引为 0 的值
-
getFirst
public static float getFirst(float[] floats) 获取数组第一条数据- 参数:
floats- float[]- 返回:
- 数组索引为 0 的值
-
getFirst
public static double getFirst(double[] doubles) 获取数组第一条数据- 参数:
doubles- double[]- 返回:
- 数组索引为 0 的值
-
getFirst
public static boolean getFirst(boolean[] booleans) 获取数组第一条数据- 参数:
booleans- boolean[]- 返回:
- 数组索引为 0 的值
-
getLast
public static <T> T getLast(T[] array) 获取数组最后一条数据- 类型参数:
T- 泛型- 参数:
array- 数组- 返回:
- 数组索引 length - 1 的值
-
getLast
public static int getLast(int[] ints) 获取数组最后一条数据- 参数:
ints- int[]- 返回:
- 数组索引 length - 1 的值
-
getLast
public static byte getLast(byte[] bytes) 获取数组最后一条数据- 参数:
bytes- byte[]- 返回:
- 数组索引 length - 1 的值
-
getLast
public static char getLast(char[] chars) 获取数组最后一条数据- 参数:
chars- char[]- 返回:
- 数组索引 length - 1 的值
-
getLast
public static short getLast(short[] shorts) 获取数组最后一条数据- 参数:
shorts- short[]- 返回:
- 数组索引 length - 1 的值
-
getLast
public static long getLast(long[] longs) 获取数组最后一条数据- 参数:
longs- long[]- 返回:
- 数组索引 length - 1 的值
-
getLast
public static float getLast(float[] floats) 获取数组最后一条数据- 参数:
floats- float[]- 返回:
- 数组索引 length - 1 的值
-
getLast
public static double getLast(double[] doubles) 获取数组最后一条数据- 参数:
doubles- double[]- 返回:
- 数组索引 length - 1 的值
-
getLast
public static boolean getLast(boolean[] booleans) 获取数组最后一条数据- 参数:
booleans- boolean[]- 返回:
- 数组索引 length - 1 的值
-
get
public static <T> T get(T[] array, T value, int number, boolean notNull, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 类型参数:
T- 泛型- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )notNull- 是否不允许值为 nulloffset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static <T> int getPosition(T[] array, T value, int number, boolean notNull, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 类型参数:
T- 泛型- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )notNull- 是否不允许值为 nulloffset- 偏移量- 返回:
- 对应的索引
-
get
public static <T> T get(T[] array, T value) 根据指定 value 获取 value 所在位置 + 偏移量的值- 类型参数:
T- 泛型- 参数:
array- 数组value- 值- 返回:
- 对应索引的值
-
get
public static <T> T get(T[] array, T value, int number) 根据指定 value 获取 value 所在位置 + 偏移量的值- 类型参数:
T- 泛型- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )- 返回:
- 对应索引的值
-
get
public static <T> T get(T[] array, T value, boolean notNull) 根据指定 value 获取 value 所在位置 + 偏移量的值- 类型参数:
T- 泛型- 参数:
array- 数组value- 值notNull- 是否不允许值为 null- 返回:
- 对应索引的值
-
get
public static <T> T get(T[] array, T value, int number, boolean notNull) 根据指定 value 获取 value 所在位置 + 偏移量的值- 类型参数:
T- 泛型- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )notNull- 是否不允许值为 null- 返回:
- 对应索引的值
-
getNotNull
public static <T> T getNotNull(T[] array, T value) 根据指定 value 获取 value 所在位置 + 偏移量的值, 不允许值为 null- 类型参数:
T- 泛型- 参数:
array- 数组value- 值- 返回:
- 对应索引的值
-
getNotNull
public static <T> T getNotNull(T[] array, T value, int number) 根据指定 value 获取 value 所在位置 + 偏移量的值, 不允许值为 null- 类型参数:
T- 泛型- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )- 返回:
- 对应索引的值
-
getPosition
public static <T> int getPosition(T[] array, T value) 根据指定 value 获取索引- 类型参数:
T- 泛型- 参数:
array- 数组value- 值- 返回:
- 对应的索引
-
getPosition
public static <T> int getPosition(T[] array, T value, int number) 根据指定 value 获取索引- 类型参数:
T- 泛型- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )- 返回:
- 对应的索引
-
getPosition
public static <T> int getPosition(T[] array, T value, boolean notNull) 根据指定 value 获取索引- 类型参数:
T- 泛型- 参数:
array- 数组value- 值notNull- 是否不允许值为 null- 返回:
- 对应的索引
-
getPosition
public static <T> int getPosition(T[] array, T value, int number, boolean notNull) 根据指定 value 获取索引- 类型参数:
T- 泛型- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )notNull- 是否不允许值为 null- 返回:
- 对应的索引
-
getPositionNotNull
public static <T> int getPositionNotNull(T[] array, T value) 根据指定 value 获取索引, 不允许值为 null- 类型参数:
T- 泛型- 参数:
array- 数组value- 值- 返回:
- 对应的索引
-
getPositionNotNull
public static <T> int getPositionNotNull(T[] array, T value, int number) 根据指定 value 获取索引, 不允许值为 null- 类型参数:
T- 泛型- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )- 返回:
- 对应的索引
-
get
public static int get(int[] array, int value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static int getPosition(int[] array, int value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应的索引
-
get
public static byte get(byte[] array, byte value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static int getPosition(byte[] array, byte value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应的索引
-
get
public static char get(char[] array, char value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static int getPosition(char[] array, char value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应的索引
-
get
public static short get(short[] array, short value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static int getPosition(short[] array, short value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应的索引
-
get
public static long get(long[] array, long value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static int getPosition(long[] array, long value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应的索引
-
get
public static float get(float[] array, float value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static int getPosition(float[] array, float value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应的索引
-
get
public static double get(double[] array, double value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static int getPosition(double[] array, double value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应的索引
-
get
public static boolean get(boolean[] array, boolean value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的值- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应索引的值
-
getPosition
public static int getPosition(boolean[] array, boolean value, int number, int offset) 根据指定值获取 value 所在位置 + 偏移量的索引- 参数:
array- 数组value- 值number- 符合条件次数 ( 从 0 开始, 0 = 1 )offset- 偏移量- 返回:
- 对应的索引
-
intsToIntegers
int[] 转换 Integer[]- 参数:
ints- int[]- 返回:
Integer
-
bytesToBytes
byte[] 转换 Byte[]- 参数:
bytes- byte[]- 返回:
Byte
-
charsToCharacters
char[] 转换 Character[]- 参数:
chars- char[]- 返回:
Character
-
shortsToShorts
short[] 转换 Short[]- 参数:
shorts- short[]- 返回:
Short
-
longsToLongs
long[] 转换 Long[]- 参数:
longs- long[]- 返回:
Long
-
floatsToFloats
float[] 转换 Float[]- 参数:
floats- float[]- 返回:
Float
-
doublesToDoubles
double[] 转换 Double[]- 参数:
doubles- double[]- 返回:
Double
-
booleansToBooleans
boolean[] 转换 Boolean[]- 参数:
booleans- boolean[]- 返回:
Boolean
-
integersToInts
Integer[] 转换 int[]- 参数:
integers- Integer[]defaultValue- 转换失败使用得默认值- 返回:
- int[]
-
bytesToBytes
Byte[] 转换 byte[]- 参数:
bytes- Byte[]defaultValue- 转换失败使用得默认值- 返回:
- byte[]
-
charactersToChars
Character[] 转换 char[]- 参数:
characters- Character[]defaultValue- 转换失败使用得默认值- 返回:
- char[]
-
shortsToShorts
Short[] 转换 short[]- 参数:
shorts- Short[]defaultValue- 转换失败使用得默认值- 返回:
- short[]
-
longsToLongs
Long[] 转换 long[]- 参数:
longs- Long[]defaultValue- 转换失败使用得默认值- 返回:
- long[]
-
floatsToFloats
Float[] 转换 float[]- 参数:
floats- Float[]defaultValue- 转换失败使用得默认值- 返回:
- float[]
-
doublesToDoubles
Double[] 转换 double[]- 参数:
doubles- Double[]defaultValue- 转换失败使用得默认值- 返回:
- double[]
-
booleansToBooleans
Boolean[] 转换 boolean[]- 参数:
booleans- Boolean[]defaultValue- 转换失败使用得默认值- 返回:
- boolean[]
-
asList
转换数组为集合- 类型参数:
T- 泛型- 参数:
array- 数组- 返回:
List<T>
-
asListArgs
转换数组为集合- 类型参数:
T- 泛型- 参数:
array- 数组- 返回:
List<T>
-
asList
转换数组为集合 -
asList
转换数组为集合 -
asList
转换数组为集合 -
asList
转换数组为集合 -
asList
转换数组为集合 -
asList
转换数组为集合 -
asList
转换数组为集合 -
asList
转换数组为集合 -
asListArgsInt
转换数组为集合 -
asListArgsByte
转换数组为集合 -
asListArgsChar
转换数组为集合 -
asListArgsShort
转换数组为集合 -
asListArgsLong
转换数组为集合 -
asListArgsFloat
转换数组为集合 -
asListArgsDouble
转换数组为集合 -
asListArgsBoolean
转换数组为集合 -
equals
public static <T> boolean equals(T value1, T value2) 判断两个值是否一样- 类型参数:
T- 泛型- 参数:
value1- 第一个值value2- 第二个值- 返回:
trueyes,falseno
-
arrayCopy
public static <T> T[] arrayCopy(T[] prefix, T[] suffix) 拼接数组- 类型参数:
T- 泛型- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组集合
-
arrayCopy
public static int[] arrayCopy(int[] prefix, int[] suffix) 拼接数组- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组
-
arrayCopy
public static byte[] arrayCopy(byte[] prefix, byte[] suffix) 拼接数组- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组
-
arrayCopy
public static char[] arrayCopy(char[] prefix, char[] suffix) 拼接数组- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组
-
arrayCopy
public static short[] arrayCopy(short[] prefix, short[] suffix) 拼接数组- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组
-
arrayCopy
public static long[] arrayCopy(long[] prefix, long[] suffix) 拼接数组- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组
-
arrayCopy
public static float[] arrayCopy(float[] prefix, float[] suffix) 拼接数组- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组
-
arrayCopy
public static double[] arrayCopy(double[] prefix, double[] suffix) 拼接数组- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组
-
arrayCopy
public static boolean[] arrayCopy(boolean[] prefix, boolean[] suffix) 拼接数组- 参数:
prefix- 第一个数组suffix- 第二个数组- 返回:
- 拼接后的数组
-
newArray
public static <T> T[] newArray(T[] data, int length) 创建指定长度数组- 类型参数:
T- 泛型- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
newArray
public static int[] newArray(int[] data, int length) 创建指定长度数组- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
newArray
public static byte[] newArray(byte[] data, int length) 创建指定长度数组- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
newArray
public static char[] newArray(char[] data, int length) 创建指定长度数组- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
newArray
public static short[] newArray(short[] data, int length) 创建指定长度数组- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
newArray
public static long[] newArray(long[] data, int length) 创建指定长度数组- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
newArray
public static float[] newArray(float[] data, int length) 创建指定长度数组- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
newArray
public static double[] newArray(double[] data, int length) 创建指定长度数组- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
newArray
public static boolean[] newArray(boolean[] data, int length) 创建指定长度数组- 参数:
data- 待处理数组length- 保留长度- 返回:
- 指定长度数组
-
subArray
public static <T> T[] subArray(T[] data, int off, int length) 从数组上截取一段- 类型参数:
T- 泛型- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
subArray
public static int[] subArray(int[] data, int off, int length) 从数组上截取一段- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
subArray
public static byte[] subArray(byte[] data, int off, int length) 从数组上截取一段- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
subArray
public static char[] subArray(char[] data, int off, int length) 从数组上截取一段- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
subArray
public static short[] subArray(short[] data, int off, int length) 从数组上截取一段- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
subArray
public static long[] subArray(long[] data, int off, int length) 从数组上截取一段- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
subArray
public static float[] subArray(float[] data, int off, int length) 从数组上截取一段- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
subArray
public static double[] subArray(double[] data, int off, int length) 从数组上截取一段- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
subArray
public static boolean[] subArray(boolean[] data, int off, int length) 从数组上截取一段- 参数:
data- 数组off- 起始值length- 所需长度- 返回:
- 裁剪后的数组
-
appendToString
追加数组内容字符串- 类型参数:
T- 泛型- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
appendToString
追加数组内容字符串- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
appendToString
追加数组内容字符串- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
appendToString
追加数组内容字符串- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
appendToString
追加数组内容字符串- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
appendToString
追加数组内容字符串- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
appendToString
追加数组内容字符串- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
appendToString
追加数组内容字符串- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
appendToString
追加数组内容字符串- 参数:
data- 数组- 返回:
- 追加数组内容字符串
-
getMinimumIndex
public static int getMinimumIndex(int[] data) 获取数组中最小值索引- 参数:
data- 数组- 返回:
- 最小值索引
-
getMinimumIndex
public static int getMinimumIndex(long[] data) 获取数组中最小值索引- 参数:
data- 数组- 返回:
- 最小值索引
-
getMinimumIndex
public static int getMinimumIndex(float[] data) 获取数组中最小值索引- 参数:
data- 数组- 返回:
- 最小值索引
-
getMinimumIndex
public static int getMinimumIndex(double[] data) 获取数组中最小值索引- 参数:
data- 数组- 返回:
- 最小值索引
-
getMaximumIndex
public static int getMaximumIndex(int[] data) 获取数组中最大值索引- 参数:
data- 数组- 返回:
- 最大值索引
-
getMaximumIndex
public static int getMaximumIndex(long[] data) 获取数组中最大值索引- 参数:
data- 数组- 返回:
- 最大值索引
-
getMaximumIndex
public static int getMaximumIndex(float[] data) 获取数组中最大值索引- 参数:
data- 数组- 返回:
- 最大值索引
-
getMaximumIndex
public static int getMaximumIndex(double[] data) 获取数组中最大值索引- 参数:
data- 数组- 返回:
- 最大值索引
-
getMinimum
public static int getMinimum(int[] data) 获取数组中最小值- 参数:
data- 数组- 返回:
- 最小值
-
getMinimum
public static long getMinimum(long[] data) 获取数组中最小值- 参数:
data- 数组- 返回:
- 最小值
-
getMinimum
public static float getMinimum(float[] data) 获取数组中最小值- 参数:
data- 数组- 返回:
- 最小值
-
getMinimum
public static double getMinimum(double[] data) 获取数组中最小值- 参数:
data- 数组- 返回:
- 最小值
-
getMaximum
public static int getMaximum(int[] data) 获取数组中最大值- 参数:
data- 数组- 返回:
- 最大值
-
getMaximum
public static long getMaximum(long[] data) 获取数组中最大值- 参数:
data- 数组- 返回:
- 最大值
-
getMaximum
public static float getMaximum(float[] data) 获取数组中最大值- 参数:
data- 数组- 返回:
- 最大值
-
getMaximum
public static double getMaximum(double[] data) 获取数组中最大值- 参数:
data- 数组- 返回:
- 最大值
-
sumArray
public static int sumArray(int[] data) 计算数组总和- 参数:
data- 数组- 返回:
- 数组总和
-
sumArray
public static int sumArray(int[] data, int end) 计算数组总和- 参数:
data- 数组end- 结束位置- 返回:
- 数组总和
-
sumArray
public static int sumArray(int[] data, int end, int extra) 计算数组总和- 参数:
data- 数组end- 结束位置extra- 额外值- 返回:
- 数组总和
-
sumArray
public static int sumArray(int[] data, int start, int end, int extra) 计算数组总和- 参数:
data- 数组start- 开始位置end- 结束位置extra- 额外值- 返回:
- 数组总和
-
sumArray
public static long sumArray(long[] data) 计算数组总和- 参数:
data- 数组- 返回:
- 数组总和
-
sumArray
public static long sumArray(long[] data, int end) 计算数组总和- 参数:
data- 数组end- 结束位置- 返回:
- 数组总和
-
sumArray
public static long sumArray(long[] data, int end, long extra) 计算数组总和- 参数:
data- 数组end- 结束位置extra- 额外值- 返回:
- 数组总和
-
sumArray
public static long sumArray(long[] data, int start, int end, long extra) 计算数组总和- 参数:
data- 数组start- 开始位置end- 结束位置extra- 额外值- 返回:
- 数组总和
-
sumArray
public static float sumArray(float[] data) 计算数组总和- 参数:
data- 数组- 返回:
- 数组总和
-
sumArray
public static float sumArray(float[] data, int end) 计算数组总和- 参数:
data- 数组end- 结束位置- 返回:
- 数组总和
-
sumArray
public static float sumArray(float[] data, int end, float extra) 计算数组总和- 参数:
data- 数组end- 结束位置extra- 额外值- 返回:
- 数组总和
-
sumArray
public static float sumArray(float[] data, int start, int end, float extra) 计算数组总和- 参数:
data- 数组start- 开始位置end- 结束位置extra- 额外值- 返回:
- 数组总和
-
sumArray
public static double sumArray(double[] data) 计算数组总和- 参数:
data- 数组- 返回:
- 数组总和
-
sumArray
public static double sumArray(double[] data, int end) 计算数组总和- 参数:
data- 数组end- 结束位置- 返回:
- 数组总和
-
sumArray
public static double sumArray(double[] data, int end, double extra) 计算数组总和- 参数:
data- 数组end- 结束位置extra- 额外值- 返回:
- 数组总和
-
sumArray
public static double sumArray(double[] data, int start, int end, double extra) 计算数组总和- 参数:
data- 数组start- 开始位置end- 结束位置extra- 额外值- 返回:
- 数组总和
-