程序包 dev.utils.common
类 ForUtils
- java.lang.Object
-
- dev.utils.common.ForUtils
-
public final class ForUtils extends java.lang.Objectdetail: 循环工具类- 作者:
- Ttt
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceForUtils.BooleanConsumerdetail: 循环消费者static interfaceForUtils.ByteConsumerdetail: 循环消费者static interfaceForUtils.CharConsumerdetail: 循环消费者static interfaceForUtils.Consumer<T>detail: 循环消费者static interfaceForUtils.ConsumerSimple<T>detail: 循环消费者static interfaceForUtils.DoubleConsumerdetail: 循环消费者static interfaceForUtils.FloatConsumerdetail: 循环消费者static interfaceForUtils.IntConsumerdetail: 循环消费者static interfaceForUtils.LongConsumerdetail: 循环消费者static interfaceForUtils.ShortConsumerdetail: 循环消费者
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 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 booleanforLongs(ForUtils.LongConsumer action, boolean checkLength, long... args)循环可变数组static booleanforLongs(ForUtils.LongConsumer action, long... args)循环可变数组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
public static <T> boolean forArgs(ForUtils.Consumer<T> action, T... args)
循环可变数组- 类型参数:
T- 泛型- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forArgs
public static <T> boolean forArgs(ForUtils.Consumer<T> action, boolean checkLength, T... args)
循环可变数组基础类型需要传入包装类型, 如 int 传入为 Integer 为泛型类型- 类型参数:
T- 泛型- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forSimpleArgs
public static <T> boolean forSimpleArgs(ForUtils.ConsumerSimple<T> action, T... args)
循环可变数组- 类型参数:
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
-
forInts
public static boolean forInts(ForUtils.IntConsumer action, int... args)
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forInts
public static boolean forInts(ForUtils.IntConsumer action, boolean checkLength, int... args)
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forDoubles
public static boolean forDoubles(ForUtils.DoubleConsumer action, double... args)
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forDoubles
public static boolean forDoubles(ForUtils.DoubleConsumer action, boolean checkLength, double... args)
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forFloats
public static boolean forFloats(ForUtils.FloatConsumer action, float... args)
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forFloats
public static boolean forFloats(ForUtils.FloatConsumer action, boolean checkLength, float... args)
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forLongs
public static boolean forLongs(ForUtils.LongConsumer action, long... args)
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forLongs
public static boolean forLongs(ForUtils.LongConsumer action, boolean checkLength, long... args)
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forBooleans
public static boolean forBooleans(ForUtils.BooleanConsumer action, boolean... args)
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forBooleans
public static boolean forBooleans(ForUtils.BooleanConsumer action, boolean checkLength, boolean... args)
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forBytes
public static boolean forBytes(ForUtils.ByteConsumer action, byte... args)
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forBytes
public static boolean forBytes(ForUtils.ByteConsumer action, boolean checkLength, byte... args)
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forChars
public static boolean forChars(ForUtils.CharConsumer action, char... args)
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forChars
public static boolean forChars(ForUtils.CharConsumer action, boolean checkLength, char... args)
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
forShorts
public static boolean forShorts(ForUtils.ShortConsumer action, short... args)
循环可变数组- 参数:
action- 循环消费对象args- 参数- 返回:
truesuccess,falsefail
-
forShorts
public static boolean forShorts(ForUtils.ShortConsumer action, boolean checkLength, short... args)
循环可变数组- 参数:
action- 循环消费对象checkLength- 是否检查长度args- 参数- 返回:
truesuccess,falsefail
-
-