public final class Conditions extends Object
| Modifier and Type | Method and Description |
|---|---|
static Condition |
and(Condition... conditions)
Returns "AND" condition for collection of nested
conditions |
static Condition |
eq(String name,
Object value)
Returns "EQUALS" condition which restricts property by
name to defined value |
static Condition |
ge(String name,
Number value)
Returns "GREATER THAN ON EQUAL" condition which restricts property by
name to defined value |
static Condition |
gt(String name,
Number value)
Returns "GREATER THAN" condition which restricts property by
name to defined value |
static Condition |
in(String name,
Collection<?> values)
Returns "IN" condition for property by
name and allowed set of values |
static Condition |
in(String name,
Object... values)
Returns "IN" condition for property by
name and allowed set of values |
static Condition |
le(String name,
Number value)
Returns "LESS THAN ON EQUAL" condition which restricts property by
name to defined value |
static Condition |
lt(String name,
Number value)
Returns "LESS THAN" condition which restricts property by
name to defined value |
static Condition |
or(Condition... conditions)
Returns "OR" condition for collection of nested
conditions |
public static Condition in(String name, Object... values)
name and allowed set of valuesname - - name of propertyvalues - - array of allowed valuespublic static Condition in(String name, Collection<?> values)
name and allowed set of valuesname - - name of propertyvalues - - collection of allowed valuespublic static Condition eq(String name, Object value)
name to defined valuename - - name of propertyvalue - - defined valuepublic static Condition or(Condition... conditions)
conditionsconditions - - nested condition objectspublic static Condition and(Condition... conditions)
conditionsconditions - - nested condition objectspublic static Condition gt(String name, Number value)
name to defined valuename - - name of propertyvalue - - defined valuepublic static Condition lt(String name, Number value)
name to defined valuename - - name of propertyvalue - - defined valuepublic static Condition ge(String name, Number value)
name to defined valuename - - name of propertyvalue - - defined valueCopyright © 2014–2021 Redisson. All rights reserved.