Class Booleans
java.lang.Object
fj.function.Booleans
Curried logical functions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionCurried form of logical "and" (conjunction).Curried form of logical "if" (reverse material implication).Curried form of logical "if and only if" (biconditional, equivalence).Curried form of logical "only if" (material implication).Curried form of logical "not if" (reverse nonimplication).Curried form of logical "not implies" (nonimplication).Curried form of logical "not or".Logical negation.Curried form of logical "inclusive or" (disjunction).Curried form of logical xor (nonequivalence). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if all the elements of the given list are true.static booleanReturns true if all the elements of the given stream are true.composes the given predicate using conjunctionReturns a composed predicate of given List of predicatesReturns composed predicatecond()Curried form of conditional.maps given function to the predicate functionalias for contramapreturns inverse of contramapNegates the given predicate.static booleanReturns true if any element of the given list is true.static booleanReturns true if any element of the given stream is true.returns composed predicate using disjunctionReturns a composed predicate of given List of predicatesReturns a composed predicate of given Stream of predicatescomposes the given predicate using exclusive disjunction
-
Field Details
-
or
-
and
-
xor
-
not
-
implies
-
if_
-
iff
-
nimp
-
nif
-
nor
-
-
Constructor Details
-
Booleans
private Booleans()
-
-
Method Details
-
and
-
contramap
-
is
-
isnot
-
and
-
xor
-
or
-
and
-
andAll
-
andAll
-
orAll
-
orAll
-
or
-
or
-
not
-
cond
-