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