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 |
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 |
or(Condition... conditions)
Returns "OR" condition for collection of nested
conditions |
public static Condition in(String name, Object... values)
name
and allowed set of values
name
- - name of propertyvalues
- - array of allowed valuespublic static Condition in(String name, Collection<?> values)
name
and allowed set of values
name
- - name of propertyvalues
- - collection of allowed valuespublic static Condition eq(String name, Object value)
name
to defined value
name
- - name of propertyvalue
- - defined valuepublic static Condition or(Condition... conditions)
conditions
conditions
- - nested condition objectsCopyright © 2014–2019 The Redisson Project. All rights reserved.