Package org.opensearch.semver.expr
Class Tilde
java.lang.Object
org.opensearch.semver.expr.Tilde
- All Implemented Interfaces:
Expression
Expression to evaluate version compatibility allowing patch version variability.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Tilde
public Tilde()
-
-
Method Details
-
evaluate
Checks if the given version is compatible with a range version allowing for patch version variability. Allows all versions starting from the rangeVersion upto next minor version (exclusive).- Specified by:
evaluatein interfaceExpression- Parameters:
rangeVersion- the version specified in rangeversionToEvaluate- the version to evaluate- Returns:
trueif the versions are compatiblefalseotherwise
-