Package org.neo4j.cypherdsl.core
Class Conditions
- java.lang.Object
-
- org.neo4j.cypherdsl.core.Conditions
-
@API(status=EXPERIMENTAL, since="1.0") public final class Conditions extends java.lang.Object
Builder for various conditions.- Since:
- 1.0
- Author:
- Michael J. Simons, Gerrit Meier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Condition
isFalse()
static Condition
isTrue()
static Condition
noCondition()
Creates a placeholder condition which is not rendered in the final statement but is useful while chaining conditions together.static Condition
not(Condition condition)
Negates the given condition.static Condition
not(PatternElement pattern)
Negates the given pattern element: The pattern must not matched to be included in the reuslt.
-
-
-
Method Detail
-
not
public static Condition not(Condition condition)
Negates the given condition.- Parameters:
condition
- The condition to negate. Must not be null.- Returns:
- The negated condition.
-
not
public static Condition not(PatternElement pattern)
Negates the given pattern element: The pattern must not matched to be included in the reuslt.- Parameters:
pattern
- The pattern to negate. Must not be null.- Returns:
- A condition that evaluates to true when the pattern does not match.
-
noCondition
public static Condition noCondition()
Creates a placeholder condition which is not rendered in the final statement but is useful while chaining conditions together.- Returns:
- A placeholder condition.
-
isTrue
public static Condition isTrue()
- Returns:
- a condition that is always true.
-
isFalse
public static Condition isFalse()
- Returns:
- a condition that is always false.
-
-