public static class CompositeExpression.Helper
extends java.lang.Object
Constructor and Description |
---|
CompositeExpression.Helper() |
Modifier and Type | Method and Description |
---|---|
static CompositeExpression |
eq(java.lang.String version)
Creates a
CompositeExpression with
an underlying Equal expression. |
static CompositeExpression |
eq(Version version)
Creates a
CompositeExpression with
an underlying Equal expression. |
static CompositeExpression |
gt(java.lang.String version)
Creates a
CompositeExpression with
an underlying Greater expression. |
static CompositeExpression |
gt(Version version)
Creates a
CompositeExpression with
an underlying Greater expression. |
static CompositeExpression |
gte(java.lang.String version)
Creates a
CompositeExpression with an
underlying GreaterOrEqual expression. |
static CompositeExpression |
gte(Version version)
Creates a
CompositeExpression with an
underlying GreaterOrEqual expression. |
static CompositeExpression |
lt(java.lang.String version)
Creates a
CompositeExpression with
an underlying Less expression. |
static CompositeExpression |
lt(Version version)
Creates a
CompositeExpression with
an underlying Less expression. |
static CompositeExpression |
lte(java.lang.String version)
Creates a
CompositeExpression with an
underlying LessOrEqual expression. |
static CompositeExpression |
lte(Version version)
Creates a
CompositeExpression with an
underlying LessOrEqual expression. |
static CompositeExpression |
neq(java.lang.String version)
Creates a
CompositeExpression with
an underlying NotEqual expression. |
static CompositeExpression |
neq(Version version)
Creates a
CompositeExpression with
an underlying NotEqual expression. |
static CompositeExpression |
not(Expression expr)
Creates a
CompositeExpression with
an underlying Not expression. |
public static CompositeExpression not(Expression expr)
CompositeExpression
with
an underlying Not
expression.expr
- an Expression
to negateCompositeExpression
public static CompositeExpression eq(Version version)
CompositeExpression
with
an underlying Equal
expression.version
- a Version
to check for equalityCompositeExpression
public static CompositeExpression eq(java.lang.String version)
CompositeExpression
with
an underlying Equal
expression.version
- a Version
string to check for equalityCompositeExpression
java.lang.IllegalArgumentException
- if the input string is NULL
or emptyParseException
- when invalid version string is providedUnexpectedCharacterException
- is a special case of ParseException
public static CompositeExpression neq(Version version)
CompositeExpression
with
an underlying NotEqual
expression.version
- a Version
to check for non-equalityCompositeExpression
public static CompositeExpression neq(java.lang.String version)
CompositeExpression
with
an underlying NotEqual
expression.version
- a Version
string to check for non-equalityCompositeExpression
java.lang.IllegalArgumentException
- if the input string is NULL
or emptyParseException
- when invalid version string is providedUnexpectedCharacterException
- is a special case of ParseException
public static CompositeExpression gt(Version version)
CompositeExpression
with
an underlying Greater
expression.version
- a Version
to compare withCompositeExpression
public static CompositeExpression gt(java.lang.String version)
CompositeExpression
with
an underlying Greater
expression.version
- a Version
string to compare withCompositeExpression
java.lang.IllegalArgumentException
- if the input string is NULL
or emptyParseException
- when invalid version string is providedUnexpectedCharacterException
- is a special case of ParseException
public static CompositeExpression gte(Version version)
CompositeExpression
with an
underlying GreaterOrEqual
expression.version
- a Version
to compare withCompositeExpression
public static CompositeExpression gte(java.lang.String version)
CompositeExpression
with an
underlying GreaterOrEqual
expression.version
- a Version
string to compare withCompositeExpression
java.lang.IllegalArgumentException
- if the input string is NULL
or emptyParseException
- when invalid version string is providedUnexpectedCharacterException
- is a special case of ParseException
public static CompositeExpression lt(Version version)
CompositeExpression
with
an underlying Less
expression.version
- a Version
to compare withCompositeExpression
public static CompositeExpression lt(java.lang.String version)
CompositeExpression
with
an underlying Less
expression.version
- a Version
string to compare withCompositeExpression
java.lang.IllegalArgumentException
- if the input string is NULL
or emptyParseException
- when invalid version string is providedUnexpectedCharacterException
- is a special case of ParseException
public static CompositeExpression lte(Version version)
CompositeExpression
with an
underlying LessOrEqual
expression.version
- a Version
to compare withCompositeExpression
public static CompositeExpression lte(java.lang.String version)
CompositeExpression
with an
underlying LessOrEqual
expression.version
- a Version
string to compare withCompositeExpression
java.lang.IllegalArgumentException
- if the input string is NULL
or emptyParseException
- when invalid version string is providedUnexpectedCharacterException
- is a special case of ParseException