public static class CompositeExpression.Helper extends Object
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static CompositeExpression |
eq(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(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(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(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(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(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(String version)
CompositeExpression
with
an underlying Equal
expression.version
- a Version
string to check for equalityCompositeExpression
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(String version)
CompositeExpression
with
an underlying NotEqual
expression.version
- a Version
string to check for non-equalityCompositeExpression
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(String version)
CompositeExpression
with
an underlying Greater
expression.version
- a Version
string to compare withCompositeExpression
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(String version)
CompositeExpression
with an
underlying GreaterOrEqual
expression.version
- a Version
string to compare withCompositeExpression
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(String version)
CompositeExpression
with
an underlying Less
expression.version
- a Version
string to compare withCompositeExpression
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(String version)
CompositeExpression
with an
underlying LessOrEqual
expression.version
- a Version
string to compare withCompositeExpression
IllegalArgumentException
- if the input string is NULL
or emptyParseException
- when invalid version string is providedUnexpectedCharacterException
- is a special case of ParseException
Copyright © 2017. All rights reserved.