-
- All Implemented Interfaces:
public final class ArrayExtensions
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> List<T>times(Array<out T> $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static List<Byte>times(ByteArray $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static List<Short>times(ShortArray $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static List<Integer>times(IntArray $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static List<Long>times(LongArray $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static List<Float>times(FloatArray $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static List<Double>times(DoubleArray $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static List<Boolean>times(BooleanArray $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static List<Character>times(CharArray $self, Integer n)重复当前数组中的元素到指定次数,并转化为列表。 final static <T extends Any> List<List<T>>div(Array<out T> $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static List<List<Byte>>div(ByteArray $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static List<List<Short>>div(ShortArray $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static List<List<Integer>>div(IntArray $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static List<List<Long>>div(LongArray $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static List<List<Float>>div(FloatArray $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static List<List<Double>>div(DoubleArray $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static List<List<Boolean>>div(BooleanArray $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static List<List<Character>>div(CharArray $self, Integer n)切分当前数组中的元素到指定个数,并转化为列表。 final static <T extends Any> Array<out T>get(Array<out T> $self, IntRange indices)得到索引指定范围内的子数组。 final static ByteArrayget(ByteArray $self, IntRange indices)得到索引指定范围内的子数组。 final static ShortArrayget(ShortArray $self, IntRange indices)得到索引指定范围内的子数组。 final static IntArrayget(IntArray $self, IntRange indices)得到索引指定范围内的子数组。 final static LongArrayget(LongArray $self, IntRange indices)得到索引指定范围内的子数组。 final static FloatArrayget(FloatArray $self, IntRange indices)得到索引指定范围内的子数组。 final static DoubleArrayget(DoubleArray $self, IntRange indices)得到索引指定范围内的子数组。 final static BooleanArrayget(BooleanArray $self, IntRange indices)得到索引指定范围内的子数组。 final static CharArrayget(CharArray $self, IntRange indices)得到索引指定范围内的子数组。 final static <T extends Any> Array<out T>get(Array<out T> $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static ByteArrayget(ByteArray $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static ShortArrayget(ShortArray $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static IntArrayget(IntArray $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static LongArrayget(LongArray $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static FloatArrayget(FloatArray $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static DoubleArrayget(DoubleArray $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static BooleanArrayget(BooleanArray $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static CharArrayget(CharArray $self, Integer startIndex, Integer endIndex)得到索引指定范围内的子数组。 final static ByteArrayencodeToBase64(ByteArray $self)将当前字节数组编码为base64格式的字节数组。 final static ByteArraydecodeToBase64(ByteArray $self)将当前字节数组解码为base64格式的字节数组。 final static StringencodeToBase64String(ByteArray $self)将当前字节数组编码为base64格式的字符串。 -
-
Method Detail
-
times
final static <T extends Any> List<T> times(Array<out T> $self, Integer n)
重复当前数组中的元素到指定次数,并转化为列表。
-
times
final static List<Short> times(ShortArray $self, Integer n)
重复当前数组中的元素到指定次数,并转化为列表。
-
times
final static List<Float> times(FloatArray $self, Integer n)
重复当前数组中的元素到指定次数,并转化为列表。
-
times
final static List<Double> times(DoubleArray $self, Integer n)
重复当前数组中的元素到指定次数,并转化为列表。
-
times
final static List<Boolean> times(BooleanArray $self, Integer n)
重复当前数组中的元素到指定次数,并转化为列表。
-
div
final static <T extends Any> List<List<T>> div(Array<out T> $self, Integer n)
切分当前数组中的元素到指定个数,并转化为列表。
-
get
final static <T extends Any> Array<out T> get(Array<out T> $self, IntRange indices)
得到索引指定范围内的子数组。
-
get
final static ShortArray get(ShortArray $self, IntRange indices)
得到索引指定范围内的子数组。
-
get
final static FloatArray get(FloatArray $self, IntRange indices)
得到索引指定范围内的子数组。
-
get
final static DoubleArray get(DoubleArray $self, IntRange indices)
得到索引指定范围内的子数组。
-
get
final static BooleanArray get(BooleanArray $self, IntRange indices)
得到索引指定范围内的子数组。
-
get
final static <T extends Any> Array<out T> get(Array<out T> $self, Integer startIndex, Integer endIndex)
得到索引指定范围内的子数组。
-
get
final static ByteArray get(ByteArray $self, Integer startIndex, Integer endIndex)
得到索引指定范围内的子数组。
-
get
final static ShortArray get(ShortArray $self, Integer startIndex, Integer endIndex)
得到索引指定范围内的子数组。
-
get
final static LongArray get(LongArray $self, Integer startIndex, Integer endIndex)
得到索引指定范围内的子数组。
-
get
final static FloatArray get(FloatArray $self, Integer startIndex, Integer endIndex)
得到索引指定范围内的子数组。
-
get
final static DoubleArray get(DoubleArray $self, Integer startIndex, Integer endIndex)
得到索引指定范围内的子数组。
-
get
final static BooleanArray get(BooleanArray $self, Integer startIndex, Integer endIndex)
得到索引指定范围内的子数组。
-
get
final static CharArray get(CharArray $self, Integer startIndex, Integer endIndex)
得到索引指定范围内的子数组。
-
encodeToBase64
final static ByteArray encodeToBase64(ByteArray $self)
将当前字节数组编码为base64格式的字节数组。
-
decodeToBase64
final static ByteArray decodeToBase64(ByteArray $self)
将当前字节数组解码为base64格式的字节数组。
-
encodeToBase64String
final static String encodeToBase64String(ByteArray $self)
将当前字节数组编码为base64格式的字符串。
-
-
-
-