Class IntPredicates
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.primitive.IntPredicates
-
public final class IntPredicates extends java.lang.ObjectProvides a set of common predicates for int values. This file was automatically generated from template file primitivePredicates.stg.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classIntPredicates.AlwaysFalseIntPredicateprivate static classIntPredicates.AlwaysTrueIntPredicateprivate static classIntPredicates.AndIntPredicateprivate static classIntPredicates.EqualsIntPredicateprivate static classIntPredicates.GreaterThanIntPredicateprivate static classIntPredicates.IntIsEvenPredicateprivate static classIntPredicates.IntIsOddPredicateprivate static classIntPredicates.LessThanIntPredicateprivate static classIntPredicates.NotIntPredicateprivate static classIntPredicates.OrIntPredicate
-
Field Summary
Fields Modifier and Type Field Description private static IntPredicateALWAYS_FALSEprivate static IntPredicateALWAYS_TRUEprivate static IntPredicates.IntIsEvenPredicateIS_EVENprivate static IntPredicates.IntIsOddPredicateIS_ODD
-
Constructor Summary
Constructors Modifier Constructor Description privateIntPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntPredicatealwaysFalse()static IntPredicatealwaysTrue()static IntPredicateand(IntPredicate one, IntPredicate two)static IntPredicateequal(int expected)static IntPredicategreaterThan(int expected)static IntPredicateisEven()static IntPredicateisOdd()static IntPredicatelessThan(int expected)static IntPredicatenot(IntPredicate negate)static IntPredicateor(IntPredicate one, IntPredicate two)
-
-
-
Field Detail
-
IS_EVEN
private static final IntPredicates.IntIsEvenPredicate IS_EVEN
-
IS_ODD
private static final IntPredicates.IntIsOddPredicate IS_ODD
-
ALWAYS_TRUE
private static final IntPredicate ALWAYS_TRUE
-
ALWAYS_FALSE
private static final IntPredicate ALWAYS_FALSE
-
-
Method Detail
-
equal
public static IntPredicate equal(int expected)
-
lessThan
public static IntPredicate lessThan(int expected)
-
greaterThan
public static IntPredicate greaterThan(int expected)
-
isEven
public static IntPredicate isEven()
-
isOdd
public static IntPredicate isOdd()
-
alwaysTrue
public static IntPredicate alwaysTrue()
-
alwaysFalse
public static IntPredicate alwaysFalse()
-
and
public static IntPredicate and(IntPredicate one, IntPredicate two)
-
or
public static IntPredicate or(IntPredicate one, IntPredicate two)
-
not
public static IntPredicate not(IntPredicate negate)
-
-