Class And
java.lang.Object
com.github.zafarkhaja.semver.expr.And
- All Implemented Interfaces:
Expression
Expression for the logical "and" operator.
- Since:
- 0.7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Expression
The left-hand operand of expression.private final Expression
The right-hand operand of expression. -
Constructor Summary
ConstructorsConstructorDescriptionAnd
(Expression left, Expression right) Constructs aAnd
expression with the left-hand and right-hand operands. -
Method Summary
-
Field Details
-
left
The left-hand operand of expression. -
right
The right-hand operand of expression.
-
-
Constructor Details
-
And
And(Expression left, Expression right) Constructs aAnd
expression with the left-hand and right-hand operands.- Parameters:
left
- the left-hand operand of expressionright
- the right-hand operand of expression
-
-
Method Details
-
interpret
Checks if both operands evaluate totrue
.- Specified by:
interpret
in interfaceExpression
- Parameters:
version
- the version to interpret against- Returns:
true
if both operands evaluate totrue
orfalse
otherwise
-