Class Less
java.lang.Object
com.github.zafarkhaja.semver.expr.Less
- All Implemented Interfaces:
Expression
Expression for the comparison "less than" operator.
- Since:
- 0.7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VersionThe parsed version, the right-hand operand of the "less than" operator. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
parsedVersion
The parsed version, the right-hand operand of the "less than" operator.
-
-
Constructor Details
-
Less
Less(Version parsedVersion) Constructs aLessexpression with the parsed version.- Parameters:
parsedVersion- the parsed version
-
-
Method Details
-
interpret
Checks if the current version is less than the parsed version.- Specified by:
interpretin interfaceExpression- Parameters:
version- the version to compare to, the left-hand operand of the "less than" operator- Returns:
trueif the version is less than the parsed version orfalseotherwise
-