@Deprecated public abstract class CommonValueMatchers extends Object
ValueMatcher
s.Modifier and Type | Method and Description |
---|---|
static ValueMatcher |
exact(Object valueToMatch)
Deprecated.
Checks for equality between a value and
valueToMatch . |
static ValueMatcher |
exactAny(Object valueToMatch)
Deprecated.
Checks for equality between a value and
valueToMatch . |
static ValueMatcher |
exactAnyOf(Object... anyOfTheseToMatch)
Deprecated.
Checks for equality between a value and any one of
anyOfTheseToMatch . |
static ValueMatcher |
has()
Deprecated.
Checks that the property exists.
|
static ValueMatcher |
regex(Pattern pattern)
Deprecated.
Checks that the
String property matches the specified regular
expression pattern. |
public static ValueMatcher exact(Object valueToMatch)
valueToMatch
. Returns
true
if the value isn't null and is equal to
valueToMatch
, else false
.valueToMatch
- the expected value.valueToMatch
.public static ValueMatcher exactAny(Object valueToMatch)
valueToMatch
.
If the value is an array each item in the array is matched against
valueToMatch
and if any of those matches it's considered
a match.valueToMatch
- the expected value.valueToMatch
.public static ValueMatcher exactAnyOf(Object... anyOfTheseToMatch)
anyOfTheseToMatch
. If the value is an array each item in
the array is matched against any one of valueToMatch
and if
any of those matches it's considered a match.anyOfTheseToMatch
- the expected value.anyOfTheseToMatch
.public static ValueMatcher has()
public static ValueMatcher regex(Pattern pattern)
String
property matches the specified regular
expression pattern.pattern
- the regular expression pattern to match the property with.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.