程序包 dev.utils.common
类 ForUtils
java.lang.Object
dev.utils.common.ForUtils
detail: 循环工具类
- 作者:
- Ttt
-
嵌套类概要
嵌套类修饰符和类型类说明static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者static interfacedetail: 循环消费者 -
方法概要
修饰符和类型方法说明static <T> booleanforArgs(ForUtils.Consumer<T> action, boolean checkLength, T... args) 循环可变数组static <T> booleanforArgs(ForUtils.Consumer<T> action, T... args) 循环可变数组static booleanforBooleans(ForUtils.BooleanConsumer action, boolean... args) 循环可变数组static booleanforBooleans(ForUtils.BooleanConsumer action, boolean checkLength, boolean... args) 循环可变数组static booleanforBytes(ForUtils.ByteConsumer action, boolean checkLength, byte... args) 循环可变数组static booleanforBytes(ForUtils.ByteConsumer action, byte... args) 循环可变数组static booleanforChars(ForUtils.CharConsumer action, boolean checkLength, char... args) 循环可变数组static booleanforChars(ForUtils.CharConsumer action, char... args) 循环可变数组static booleanforDoubles(ForUtils.DoubleConsumer action, boolean checkLength, double... args) 循环可变数组static booleanforDoubles(ForUtils.DoubleConsumer action, double... args) 循环可变数组static booleanforFloats(ForUtils.FloatConsumer action, boolean checkLength, float... args) 循环可变数组static booleanforFloats(ForUtils.FloatConsumer action, float... args) 循环可变数组static booleanforInts(ForUtils.IntConsumer action, boolean checkLength, int... args) 循环可变数组static booleanforInts(ForUtils.IntConsumer action, int... args) 循环可变数组static <T> booleanforList(ForUtils.Consumer<T> action, boolean checkLength, List<T> list) 循环集合static <T> booleanforList(ForUtils.Consumer<T> action, List<T> list) 循环集合static <T> booleanforListIterator(ForUtils.ConsumerIterator<T> action, boolean checkLength, List<T> list) 循环集合static <T> booleanforListIterator(ForUtils.ConsumerIterator<T> action, List<T> list) 循环集合static booleanforLongs(ForUtils.LongConsumer action, boolean checkLength, long... args) 循环可变数组static booleanforLongs(ForUtils.LongConsumer action, long... args) 循环可变数组static <K,V> boolean forMap(ForUtils.ConsumerMap<K, V> action, boolean checkLength, Map<K, V> maps) 循环集合static <K,V> boolean forMap(ForUtils.ConsumerMap<K, V> action, Map<K, V> maps) 循环集合static <T> booleanforSet(ForUtils.ConsumerIterator<T> action, boolean checkLength, Set<T> sets) 循环集合static <T> booleanforSet(ForUtils.ConsumerIterator<T> action, Set<T> sets) 循环集合static booleanforShorts(ForUtils.ShortConsumer action, boolean checkLength, short... args) 循环可变数组static booleanforShorts(ForUtils.ShortConsumer action, short... args) 循环可变数组static <T> booleanforSimpleArgs(ForUtils.ConsumerSimple<T> action, boolean checkLength, T... args) 循环可变数组static <T> booleanforSimpleArgs(ForUtils.ConsumerSimple<T> action, T... args) 循环可变数组
-
方法详细资料
-
forArgs
循环可变数组- 类型参数:
T- 泛型- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forArgs
循环可变数组基础类型需要传入包装类型, 如 int 传入为 Integer 为泛型类型- 类型参数:
T- 泛型- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forSimpleArgs
循环可变数组- 类型参数:
T- 泛型- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forSimpleArgs
public static <T> boolean forSimpleArgs(ForUtils.ConsumerSimple<T> action, boolean checkLength, T... args) 循环可变数组基础类型需要传入包装类型, 如 int 传入为 Integer 为泛型类型- 类型参数:
T- 泛型- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forList
循环集合- 类型参数:
T- 泛型- 参数:
action- 循环消费对象list- 集合- 返回:
truesuccess,falsefail
-
forList
循环集合- 类型参数:
T- 泛型- 参数:
action- 循环消费对象checkLength- 是否检查长度list- 集合- 返回:
truesuccess,falsefail
-
forListIterator
循环集合- 类型参数:
T- 泛型- 参数:
action- 循环消费对象list- 集合- 返回:
truesuccess,falsefail
-
forListIterator
public static <T> boolean forListIterator(ForUtils.ConsumerIterator<T> action, boolean checkLength, List<T> list) 循环集合- 类型参数:
T- 泛型- 参数:
action- 循环消费对象checkLength- 是否检查长度list- 集合- 返回:
truesuccess,falsefail
-
forSet
循环集合- 类型参数:
T- 泛型- 参数:
action- 循环消费对象sets- 集合- 返回:
truesuccess,falsefail
-
forSet
public static <T> boolean forSet(ForUtils.ConsumerIterator<T> action, boolean checkLength, Set<T> sets) 循环集合- 类型参数:
T- 泛型- 参数:
action- 循环消费对象checkLength- 是否检查长度sets- 集合- 返回:
truesuccess,falsefail
-
forMap
循环集合- 类型参数:
K- keyV- value- 参数:
action- 循环消费对象maps- 集合- 返回:
truesuccess,falsefail
-
forMap
public static <K,V> boolean forMap(ForUtils.ConsumerMap<K, V> action, boolean checkLength, Map<K, V> maps) 循环集合- 类型参数:
K- keyV- value- 参数:
action- 循环消费对象checkLength- 是否检查长度maps- 集合- 返回:
truesuccess,falsefail
-
forInts
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forInts
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forDoubles
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forDoubles
public static boolean forDoubles(ForUtils.DoubleConsumer action, boolean checkLength, double... args) 循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forFloats
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forFloats
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forLongs
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forLongs
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forBooleans
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forBooleans
public static boolean forBooleans(ForUtils.BooleanConsumer action, boolean checkLength, boolean... args) 循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forBytes
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forBytes
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forChars
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forChars
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forShorts
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forShorts
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-