Class BooleanPredicates
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.primitive.BooleanPredicates
-
public final class BooleanPredicates extends java.lang.Object
Provides a set of common predicates for boolean values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
BooleanPredicates.AlwaysFalseBooleanPredicate
private static class
BooleanPredicates.AlwaysTrueBooleanPredicate
private static class
BooleanPredicates.AndBooleanPredicate
private static class
BooleanPredicates.FalsePredicate
private static class
BooleanPredicates.IsFalseBooleanPredicate
private static class
BooleanPredicates.IsTrueBooleanPredicate
private static class
BooleanPredicates.NotBooleanPredicate
private static class
BooleanPredicates.OrBooleanPredicate
private static class
BooleanPredicates.TruePredicate
-
Field Summary
Fields Modifier and Type Field Description private static BooleanPredicate
ALWAYS_FALSE
private static BooleanPredicate
ALWAYS_TRUE
private static BooleanPredicate
FALSE_PREDICATE
private static BooleanPredicate
IS_FALSE_BOOLEAN_PREDICATE
private static BooleanPredicate
IS_TRUE_BOOLEAN_PREDICATE
private static BooleanPredicate
TRUE_PREDICATE
-
Constructor Summary
Constructors Modifier Constructor Description private
BooleanPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleanPredicate
alwaysFalse()
static BooleanPredicate
alwaysTrue()
static BooleanPredicate
and(BooleanPredicate one, BooleanPredicate two)
static BooleanPredicate
equal(boolean expected)
static BooleanPredicate
isFalse()
static BooleanPredicate
isTrue()
static BooleanPredicate
not(boolean expected)
static BooleanPredicate
not(BooleanPredicate negate)
static BooleanPredicate
or(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)
-
-