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