Class Not
java.lang.Object
com.github.zafarkhaja.semver.expr.Not
- All Implemented Interfaces:
Expression
Expression for the logical "negation" operator.
- Since:
- 0.7.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNot(Expression expr) Constructs aNotexpression with an expression to negate. -
Method Summary
-
Field Details
-
expr
The expression to negate.
-
-
Constructor Details
-
Not
Not(Expression expr) Constructs aNotexpression with an expression to negate.- Parameters:
expr- the expression to negate
-
-
Method Details
-
interpret
Negates the given expression.- Specified by:
interpretin interfaceExpression- Parameters:
version- the version to interpret against- Returns:
trueif the given expression evaluates tofalseandfalseotherwise
-