类 ArrayKit
java.lang.Object
com.iohao.game.common.kit.ArrayKit
数组相关工具
- 作者:
- 渔民小镇
- 日期:
- 2022-01-14
-
构造器概要
-
方法概要
修饰符和类型方法说明int[]
copy
(int[] cards) boolean
isEmpty
(byte[] array) boolean
isEmpty
(int[] array) boolean
join
(Object[] array, CharSequence delimiter) boolean
notEmpty
(byte[] array) boolean
void
plus
(int[] cards, int[] beCards) void
random
(int[] cards, int size) <T> T
random
(T[] array) void
subtract
(int[] cards, int[] beCards) int
sum
(int[] cards) 统计数组数量toList
(int[] cards)
-
构造器详细资料
-
ArrayKit
public ArrayKit()
-
-
方法详细资料
-
sum
public int sum(int[] cards) 统计数组数量- 返回:
- 数量
-
copy
public int[] copy(int[] cards) -
toList
-
subtract
public void subtract(int[] cards, int[] beCards) -
plus
public void plus(int[] cards, int[] beCards) -
plus
-
random
-
join
-
notEmpty
-
notEmpty
public boolean notEmpty(byte[] array) -
isEmpty
public boolean isEmpty(byte[] array) -
isEmpty
public boolean isEmpty(int[] array) -
isEmpty
-
random
public <T> T random(T[] array)
-