Class BooleanPredicates
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.primitive.BooleanPredicates
-
public final class BooleanPredicates extends java.lang.ObjectProvides a set of common predicates for boolean values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classBooleanPredicates.AlwaysFalseBooleanPredicateprivate static classBooleanPredicates.AlwaysTrueBooleanPredicateprivate static classBooleanPredicates.AndBooleanPredicateprivate static classBooleanPredicates.FalsePredicateprivate static classBooleanPredicates.IsFalseBooleanPredicateprivate static classBooleanPredicates.IsTrueBooleanPredicateprivate static classBooleanPredicates.NotBooleanPredicateprivate static classBooleanPredicates.OrBooleanPredicateprivate static classBooleanPredicates.TruePredicate
-
Field Summary
Fields Modifier and Type Field Description private static BooleanPredicateALWAYS_FALSEprivate static BooleanPredicateALWAYS_TRUEprivate static BooleanPredicateFALSE_PREDICATEprivate static BooleanPredicateIS_FALSE_BOOLEAN_PREDICATEprivate static BooleanPredicateIS_TRUE_BOOLEAN_PREDICATEprivate static BooleanPredicateTRUE_PREDICATE
-
Constructor Summary
Constructors Modifier Constructor Description privateBooleanPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleanPredicatealwaysFalse()static BooleanPredicatealwaysTrue()static BooleanPredicateand(BooleanPredicate one, BooleanPredicate two)static BooleanPredicateequal(boolean expected)static BooleanPredicateisFalse()static BooleanPredicateisTrue()static BooleanPredicatenot(boolean expected)static BooleanPredicatenot(BooleanPredicate negate)static BooleanPredicateor(BooleanPredicate one, BooleanPredicate two)
-
-
-
Field Detail
-
IS_TRUE_BOOLEAN_PREDICATE
private static final BooleanPredicate IS_TRUE_BOOLEAN_PREDICATE
-
IS_FALSE_BOOLEAN_PREDICATE
private static final BooleanPredicate IS_FALSE_BOOLEAN_PREDICATE
-
FALSE_PREDICATE
private static final BooleanPredicate FALSE_PREDICATE
-
TRUE_PREDICATE
private static final BooleanPredicate TRUE_PREDICATE
-
ALWAYS_TRUE
private static final BooleanPredicate ALWAYS_TRUE
-
ALWAYS_FALSE
private static final BooleanPredicate ALWAYS_FALSE
-
-
Method Detail
-
equal
public static BooleanPredicate equal(boolean expected)
-
not
public static BooleanPredicate not(boolean expected)
-
isTrue
public static BooleanPredicate isTrue()
-
isFalse
public static BooleanPredicate isFalse()
-
alwaysTrue
public static BooleanPredicate alwaysTrue()
-
alwaysFalse
public static BooleanPredicate alwaysFalse()
-
and
public static BooleanPredicate and(BooleanPredicate one, BooleanPredicate two)
-
or
public static BooleanPredicate or(BooleanPredicate one, BooleanPredicate two)
-
not
public static BooleanPredicate not(BooleanPredicate negate)
-
-