Class LessOrEqual
java.lang.Object
com.github.zafarkhaja.semver.expr.LessOrEqual
- All Implemented Interfaces:
Expression
Expression for the comparison "less than or equal to" operator.
- Since:
- 0.7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Version
The parsed version, the right-hand operand of the "less than or equal to" operator. -
Constructor Summary
ConstructorsConstructorDescriptionLessOrEqual
(Version parsedVersion) Constructs aLessOrEqual
expression with the parsed version. -
Method Summary
-
Field Details
-
parsedVersion
The parsed version, the right-hand operand of the "less than or equal to" operator.
-
-
Constructor Details
-
LessOrEqual
LessOrEqual(Version parsedVersion) Constructs aLessOrEqual
expression with the parsed version.- Parameters:
parsedVersion
- the parsed version
-
-
Method Details
-
interpret
Checks if the current version is less than or equal to the parsed version.- Specified by:
interpret
in interfaceExpression
- Parameters:
version
- the version to compare to, the left-hand operand of the "less than or equal to" operator- Returns:
true
if the version is less than or equal to the parsed version orfalse
otherwise
-