Class CompositeExpression.Helper
java.lang.Object
com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
- Enclosing class:
CompositeExpression
A class with static helper methods.
- Since:
- 0.9.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeExpressionCreates aCompositeExpressionwith an underlyingEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingGreaterexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingGreaterexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingGreaterOrEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingGreaterOrEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingLessexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingLessexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingLessOrEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingLessOrEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingNotEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingNotEqualexpression.static CompositeExpressionnot(Expression expr) Creates aCompositeExpressionwith an underlyingNotexpression.
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
not
Creates aCompositeExpressionwith an underlyingNotexpression.- Parameters:
expr- anExpressionto negate- Returns:
- a newly created
CompositeExpression
-
eq
Creates aCompositeExpressionwith an underlyingEqualexpression.- Parameters:
version- aVersionto check for equality- Returns:
- a newly created
CompositeExpression
-
eq
Creates aCompositeExpressionwith an underlyingEqualexpression.- Parameters:
version- aVersionstring to check for equality- Returns:
- a newly created
CompositeExpression - Throws:
IllegalArgumentException- if the input string isNULLor emptyParseException- when invalid version string is providedUnexpectedCharacterException- is a special case ofParseException
-
neq
Creates aCompositeExpressionwith an underlyingNotEqualexpression.- Parameters:
version- aVersionto check for non-equality- Returns:
- a newly created
CompositeExpression
-
neq
Creates aCompositeExpressionwith an underlyingNotEqualexpression.- Parameters:
version- aVersionstring to check for non-equality- Returns:
- a newly created
CompositeExpression - Throws:
IllegalArgumentException- if the input string isNULLor emptyParseException- when invalid version string is providedUnexpectedCharacterException- is a special case ofParseException
-
gt
Creates aCompositeExpressionwith an underlyingGreaterexpression.- Parameters:
version- aVersionto compare with- Returns:
- a newly created
CompositeExpression
-
gt
Creates aCompositeExpressionwith an underlyingGreaterexpression.- Parameters:
version- aVersionstring to compare with- Returns:
- a newly created
CompositeExpression - Throws:
IllegalArgumentException- if the input string isNULLor emptyParseException- when invalid version string is providedUnexpectedCharacterException- is a special case ofParseException
-
gte
Creates aCompositeExpressionwith an underlyingGreaterOrEqualexpression.- Parameters:
version- aVersionto compare with- Returns:
- a newly created
CompositeExpression
-
gte
Creates aCompositeExpressionwith an underlyingGreaterOrEqualexpression.- Parameters:
version- aVersionstring to compare with- Returns:
- a newly created
CompositeExpression - Throws:
IllegalArgumentException- if the input string isNULLor emptyParseException- when invalid version string is providedUnexpectedCharacterException- is a special case ofParseException
-
lt
Creates aCompositeExpressionwith an underlyingLessexpression.- Parameters:
version- aVersionto compare with- Returns:
- a newly created
CompositeExpression
-
lt
Creates aCompositeExpressionwith an underlyingLessexpression.- Parameters:
version- aVersionstring to compare with- Returns:
- a newly created
CompositeExpression - Throws:
IllegalArgumentException- if the input string isNULLor emptyParseException- when invalid version string is providedUnexpectedCharacterException- is a special case ofParseException
-
lte
Creates aCompositeExpressionwith an underlyingLessOrEqualexpression.- Parameters:
version- aVersionto compare with- Returns:
- a newly created
CompositeExpression
-
lte
Creates aCompositeExpressionwith an underlyingLessOrEqualexpression.- Parameters:
version- aVersionstring to compare with- Returns:
- a newly created
CompositeExpression - Throws:
IllegalArgumentException- if the input string isNULLor emptyParseException- when invalid version string is providedUnexpectedCharacterException- is a special case ofParseException
-