Class IntegerPredicates
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.IntegerPredicates
-
public final class IntegerPredicates extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classIntegerPredicates.IntegerIsEvenprivate static classIntegerPredicates.IntegerIsNegativeprivate static classIntegerPredicates.IntegerIsOddprivate static classIntegerPredicates.IntegerIsPositiveprivate static classIntegerPredicates.IntegerIsZero
-
Field Summary
Fields Modifier and Type Field Description private static Predicates<java.lang.Integer>IS_EVENprivate static Predicates<java.lang.Integer>IS_NEGATIVEprivate static Predicates<java.lang.Integer>IS_ODDprivate static Predicates<java.lang.Integer>IS_POSITIVEprivate static Predicates<java.lang.Integer>IS_ZERO
-
Constructor Summary
Constructors Modifier Constructor Description privateIntegerPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Predicates<T>attributeIsEven(Function<? super T,java.lang.Integer> function)static <T> Predicates<T>attributeIsNegative(Function<? super T,java.lang.Integer> function)static <T> Predicates<T>attributeIsOdd(Function<? super T,java.lang.Integer> function)static <T> Predicates<T>attributeIsPositive(Function<? super T,java.lang.Integer> function)static <T> Predicates<T>attributeIsZero(Function<? super T,java.lang.Integer> function)static Predicates<java.lang.Integer>isEven()static Predicates<java.lang.Integer>isNegative()static Predicates<java.lang.Integer>isOdd()static Predicates<java.lang.Integer>isPositive()static Predicates<java.lang.Integer>isZero()
-
-
-
Field Detail
-
IS_ODD
private static final Predicates<java.lang.Integer> IS_ODD
-
IS_EVEN
private static final Predicates<java.lang.Integer> IS_EVEN
-
IS_POSITIVE
private static final Predicates<java.lang.Integer> IS_POSITIVE
-
IS_NEGATIVE
private static final Predicates<java.lang.Integer> IS_NEGATIVE
-
IS_ZERO
private static final Predicates<java.lang.Integer> IS_ZERO
-
-
Method Detail
-
isOdd
public static Predicates<java.lang.Integer> isOdd()
-
isEven
public static Predicates<java.lang.Integer> isEven()
-
isPositive
public static Predicates<java.lang.Integer> isPositive()
-
isNegative
public static Predicates<java.lang.Integer> isNegative()
-
isZero
public static Predicates<java.lang.Integer> isZero()
-
attributeIsEven
public static <T> Predicates<T> attributeIsEven(Function<? super T,java.lang.Integer> function)
-
attributeIsOdd
public static <T> Predicates<T> attributeIsOdd(Function<? super T,java.lang.Integer> function)
-
attributeIsZero
public static <T> Predicates<T> attributeIsZero(Function<? super T,java.lang.Integer> function)
-
attributeIsPositive
public static <T> Predicates<T> attributeIsPositive(Function<? super T,java.lang.Integer> function)
-
attributeIsNegative
public static <T> Predicates<T> attributeIsNegative(Function<? super T,java.lang.Integer> function)
-
-