public class SpacePredicates extends Object
Modifier and Type | Field and Description |
---|---|
static FalseSpacePredicate |
FALSE |
static NotNullSpacePredicate |
NOT_NULL |
static NullSpacePredicate |
NULL |
static TrueSpacePredicate |
TRUE |
Constructor and Description |
---|
SpacePredicates() |
Modifier and Type | Method and Description |
---|---|
static AllSpacePredicate |
all(ISpacePredicate... predicates)
Creates an ALL predicate wrapping the specified predicates.
|
static AndSpacePredicate |
and(ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Creates an AND predicate wrapping the specified predicates.
|
static AnySpacePredicate |
any(ISpacePredicate... predicates)
Creates an ANY predicate wrapping the specified predicates.
|
static BetweenSpacePredicate |
between(Comparable<?> low,
Comparable<?> high)
Creates a BETWEEN predicate using the specified expected values.
|
static EqualsSpacePredicate |
equal(Object value)
Creates an EQUALS predicate using the specified expected value.
|
static GreaterSpacePredicate |
greater(Comparable<?> value)
Creates a GREATER predicate using the specified expected value.
|
static GreaterEqualsSpacePredicate |
greaterEqual(Comparable<?> value)
Creates a GREATER-EQUALS predicate using the specified expected value.
|
static InSpacePredicate |
in(Object... values)
Creates an IN predicate using the specified expected values.
|
static NotNullSpacePredicate |
isNotNull()
Creates an IS NOT NULL predicate.
|
static NullSpacePredicate |
isNull()
Creates an IS NULL predicate.
|
static LessSpacePredicate |
less(Comparable<?> value)
Creates a LESS predicate using the specified expected value.
|
static LessEqualsSpacePredicate |
lessEqual(Comparable<?> value)
Creates a LESS-EQUALS predicate using the specified expected value.
|
static NotSpacePredicate |
not(ISpacePredicate predicate)
Creates a NOT predicate wrapping the specified predicate.
|
static NotEqualsSpacePredicate |
notEqual(Object value)
Creates a NOT EQUALS predicate using the specified expected value.
|
static OrSpacePredicate |
or(ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Creates an OR predicate wrapping the specified predicates.
|
static ValueGetterSpacePredicate<ServerEntry> |
path(String path,
ISpacePredicate predicate)
Creates a predicate to get a property value and test it with another predicate.
|
static ValueGetterSpacePredicate<ServerEntry> |
pathAll(String path,
ISpacePredicate... predicates)
Shortcut for path(path, all(predicates)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathAnd(String path,
ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Shortcut for path(path, and(leftPredicate, rightPredicate)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathAny(String path,
ISpacePredicate... predicates)
Shortcut for path(path, any(predicates)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathBetween(String path,
Comparable<?> low,
Comparable<?> high)
Shortcut for path(path, between(low, high)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathEqual(String path,
Object value)
Shortcut for path(path, equal(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathGreater(String path,
Comparable<?> value)
Shortcut for path(path, greater(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathGreaterEqual(String path,
Comparable<?> value)
Shortcut for path(path, greaterEqual(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathIn(String path,
Object... values)
Shortcut for path(path, in(values)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathLess(String path,
Comparable<?> value)
Shortcut for path(path, less(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathLessEqual(String path,
Comparable<?> value)
Shortcut for path(path, lessEqual(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathNot(String path,
ISpacePredicate predicate)
Shortcut for path(path, not(predicate)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathNotEqual(String path,
Object value)
Shortcut for path(path, notEqual(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathNotNull(String path)
Shortcut for path(path, isNotNull()).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathNull(String path)
Shortcut for path(path, isNull()).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathOr(String path,
ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Shortcut for path(path, or(leftPredicate, rightPredicate)).
|
static ValueGetterSpacePredicate<ServerEntry> |
pathXor(String path,
ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Shortcut for path(path, xor(leftPredicate, rightPredicate)).
|
static ValueGetterSpacePredicate<ServerEntry> |
property(String propertyName,
ISpacePredicate predicate)
Creates a predicate to get a property value and test it with another predicate.
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyAll(String propertyName,
ISpacePredicate... predicates)
Shortcut for property(propertyName, all(predicates)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyAnd(String propertyName,
ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Shortcut for property(propertyName, and(leftPredicate, rightPredicate)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyAny(String propertyName,
ISpacePredicate... predicates)
Shortcut for property(propertyName, any(predicates)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyBetween(String propertyName,
Comparable<?> low,
Comparable<?> high)
Shortcut for property(propertyName, between(low, high)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyEqual(String propertyName,
Object value)
Shortcut for property(propertyName, equal(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyGreater(String propertyName,
Comparable<?> value)
Shortcut for property(propertyName, greater(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyGreaterEqual(String propertyName,
Comparable<?> value)
Shortcut for property(propertyName, greaterEqual(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyIn(String propertyName,
Object... values)
Shortcut for property(propertyName, in(values)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyLess(String propertyName,
Comparable<?> value)
Shortcut for property(propertyName, less(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyLessEqual(String propertyName,
Comparable<?> value)
Shortcut for property(propertyName, lessEqual(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyNot(String propertyName,
ISpacePredicate predicate)
Shortcut for property(propertyName, not(predicate)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyNotEqual(String propertyName,
Object value)
Shortcut for property(propertyName, notEqual(value)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyNotNull(String propertyName)
Shortcut for property(propertyName, isNotNull()).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyNull(String propertyName)
Shortcut for property(propertyName, isNull()).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyOr(String propertyName,
ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Shortcut for property(propertyName, or(leftPredicate, rightPredicate)).
|
static ValueGetterSpacePredicate<ServerEntry> |
propertyXor(String propertyName,
ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Shortcut for property(propertyName, xor(leftPredicate, rightPredicate)).
|
static RegexSpacePredicate |
regex(String pattern)
Creates a REGEX predicate using the specified expected value.
|
static XorSpacePredicate |
xor(ISpacePredicate leftPredicate,
ISpacePredicate rightPredicate)
Creates an XOR predicate wrapping the specified predicates.
|
public static final FalseSpacePredicate FALSE
public static final TrueSpacePredicate TRUE
public static final NullSpacePredicate NULL
public static final NotNullSpacePredicate NOT_NULL
public static NotSpacePredicate not(ISpacePredicate predicate)
predicate
- Predicate to wrap.public static AndSpacePredicate and(ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
leftPredicate
- Left operand of AND.rightPredicate
- Right operand of AND.public static OrSpacePredicate or(ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
leftPredicate
- Left operand of OR.rightPredicate
- Right operand of OR.public static XorSpacePredicate xor(ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
leftPredicate
- Left operand of XOR.rightPredicate
- Right operand of XOR.public static AllSpacePredicate all(ISpacePredicate... predicates)
predicates
- Predicates to wrap in ALL.public static AnySpacePredicate any(ISpacePredicate... predicates)
predicates
- Predicates to wrap in ANY.public static NullSpacePredicate isNull()
public static NotNullSpacePredicate isNotNull()
public static EqualsSpacePredicate equal(Object value)
value
- Expected value for EQUALS predicate.public static NotEqualsSpacePredicate notEqual(Object value)
value
- Expected value for NOT EQUALS predicate.public static GreaterSpacePredicate greater(Comparable<?> value)
value
- Expected value for GREATER predicate.public static GreaterEqualsSpacePredicate greaterEqual(Comparable<?> value)
value
- Expected value for GREATER-EQUALS predicate.public static LessSpacePredicate less(Comparable<?> value)
value
- Expected value for LESS predicate.public static LessEqualsSpacePredicate lessEqual(Comparable<?> value)
value
- Expected value for LESS-EQUALS predicate.public static BetweenSpacePredicate between(Comparable<?> low, Comparable<?> high)
low
- Expected low value for BETWEEN predicate.high
- Expected high value for BETWEEN predicate.public static InSpacePredicate in(Object... values)
values
- Expected values for IN predicate.public static RegexSpacePredicate regex(String pattern)
pattern
- Expected value for REGEX predicate.public static ValueGetterSpacePredicate<ServerEntry> property(String propertyName, ISpacePredicate predicate)
propertyName
- Property to test.predicate
- Predicate to apply on property.public static ValueGetterSpacePredicate<ServerEntry> propertyNull(String propertyName)
propertyName
- Name of property.public static ValueGetterSpacePredicate<ServerEntry> propertyNotNull(String propertyName)
propertyName
- Name of property.public static ValueGetterSpacePredicate<ServerEntry> propertyNot(String propertyName, ISpacePredicate predicate)
propertyName
- Name of property.predicate
- predicate for not.public static ValueGetterSpacePredicate<ServerEntry> propertyAnd(String propertyName, ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
propertyName
- Name of property.leftPredicate
- leftPredicate for and.rightPredicate
- rightPredicate for and.public static ValueGetterSpacePredicate<ServerEntry> propertyXor(String propertyName, ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
propertyName
- Name of property.leftPredicate
- leftPredicate for xor.rightPredicate
- rightPredicate for xor.public static ValueGetterSpacePredicate<ServerEntry> propertyOr(String propertyName, ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
propertyName
- Name of property.leftPredicate
- leftPredicate for or.rightPredicate
- rightPredicate for or.public static ValueGetterSpacePredicate<ServerEntry> propertyAll(String propertyName, ISpacePredicate... predicates)
propertyName
- Name of property.predicates
- predicates for all.public static ValueGetterSpacePredicate<ServerEntry> propertyAny(String propertyName, ISpacePredicate... predicates)
propertyName
- Name of property.predicates
- predicates for any.public static ValueGetterSpacePredicate<ServerEntry> propertyEqual(String propertyName, Object value)
propertyName
- Name of property.value
- value for equal.public static ValueGetterSpacePredicate<ServerEntry> propertyNotEqual(String propertyName, Object value)
propertyName
- Name of property.value
- value for notEqual.public static ValueGetterSpacePredicate<ServerEntry> propertyGreater(String propertyName, Comparable<?> value)
propertyName
- Name of property.value
- value for greater.public static ValueGetterSpacePredicate<ServerEntry> propertyGreaterEqual(String propertyName, Comparable<?> value)
propertyName
- Name of property.value
- value for greaterEqual.public static ValueGetterSpacePredicate<ServerEntry> propertyLess(String propertyName, Comparable<?> value)
propertyName
- Name of property.value
- value for less.public static ValueGetterSpacePredicate<ServerEntry> propertyLessEqual(String propertyName, Comparable<?> value)
propertyName
- Name of property.value
- value for lessEqual.public static ValueGetterSpacePredicate<ServerEntry> propertyBetween(String propertyName, Comparable<?> low, Comparable<?> high)
propertyName
- Name of property.low
- Low value for between.high
- High value for between.public static ValueGetterSpacePredicate<ServerEntry> propertyIn(String propertyName, Object... values)
propertyName
- Name of property.values
- Values for in.public static ValueGetterSpacePredicate<ServerEntry> path(String path, ISpacePredicate predicate)
path
- Path to test.predicate
- Predicate to apply on property.public static ValueGetterSpacePredicate<ServerEntry> pathNull(String path)
path
- Path to test.public static ValueGetterSpacePredicate<ServerEntry> pathNotNull(String path)
path
- Path to test.public static ValueGetterSpacePredicate<ServerEntry> pathNot(String path, ISpacePredicate predicate)
path
- Path to test.predicate
- predicate for not.public static ValueGetterSpacePredicate<ServerEntry> pathAnd(String path, ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
path
- Path to test.leftPredicate
- leftPredicate for and.rightPredicate
- rightPredicate for and.public static ValueGetterSpacePredicate<ServerEntry> pathOr(String path, ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
path
- Path to test.leftPredicate
- leftPredicate for or.rightPredicate
- rightPredicate for or.public static ValueGetterSpacePredicate<ServerEntry> pathXor(String path, ISpacePredicate leftPredicate, ISpacePredicate rightPredicate)
path
- Path to test.leftPredicate
- leftPredicate for xor.rightPredicate
- rightPredicate for xor.public static ValueGetterSpacePredicate<ServerEntry> pathAll(String path, ISpacePredicate... predicates)
path
- Path to test.predicates
- predicates for all.public static ValueGetterSpacePredicate<ServerEntry> pathAny(String path, ISpacePredicate... predicates)
path
- Path to test.predicates
- predicates for any.public static ValueGetterSpacePredicate<ServerEntry> pathEqual(String path, Object value)
path
- Path to test.value
- value for equal.public static ValueGetterSpacePredicate<ServerEntry> pathNotEqual(String path, Object value)
path
- Path to test.value
- value for notEqual.public static ValueGetterSpacePredicate<ServerEntry> pathGreater(String path, Comparable<?> value)
path
- Path to test.value
- value for greater.public static ValueGetterSpacePredicate<ServerEntry> pathGreaterEqual(String path, Comparable<?> value)
path
- Path to test.value
- value for greaterEqual.public static ValueGetterSpacePredicate<ServerEntry> pathLess(String path, Comparable<?> value)
path
- Path to test.value
- value for less.public static ValueGetterSpacePredicate<ServerEntry> pathLessEqual(String path, Comparable<?> value)
path
- Path to test.value
- value for lessEqual.public static ValueGetterSpacePredicate<ServerEntry> pathBetween(String path, Comparable<?> low, Comparable<?> high)
path
- Path to test.low
- Low value for between.high
- High value for between.public static ValueGetterSpacePredicate<ServerEntry> pathIn(String path, Object... values)
path
- Path to test.values
- Values for in.Copyright © GigaSpaces.