Class IntPredicates
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.primitive.IntPredicates
-
public final class IntPredicates extends java.lang.Object
Provides 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 class
IntPredicates.AlwaysFalseIntPredicate
private static class
IntPredicates.AlwaysTrueIntPredicate
private static class
IntPredicates.AndIntPredicate
private static class
IntPredicates.EqualsIntPredicate
private static class
IntPredicates.GreaterThanIntPredicate
private static class
IntPredicates.IntIsEvenPredicate
private static class
IntPredicates.IntIsOddPredicate
private static class
IntPredicates.LessThanIntPredicate
private static class
IntPredicates.NotIntPredicate
private static class
IntPredicates.OrIntPredicate
-
Field Summary
Fields Modifier and Type Field Description private static IntPredicate
ALWAYS_FALSE
private static IntPredicate
ALWAYS_TRUE
private static IntPredicates.IntIsEvenPredicate
IS_EVEN
private static IntPredicates.IntIsOddPredicate
IS_ODD
-
Constructor Summary
Constructors Modifier Constructor Description private
IntPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntPredicate
alwaysFalse()
static IntPredicate
alwaysTrue()
static IntPredicate
and(IntPredicate one, IntPredicate two)
static IntPredicate
equal(int expected)
static IntPredicate
greaterThan(int expected)
static IntPredicate
isEven()
static IntPredicate
isOdd()
static IntPredicate
lessThan(int expected)
static IntPredicate
not(IntPredicate negate)
static IntPredicate
or(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)
-
-