public abstract class ConnectiveJanusPredicate extends ArrayList<JanusGraphPredicate> implements JanusGraphPredicate
JanusGraphPredicate.Converter
modCount
Constructor and Description |
---|
ConnectiveJanusPredicate() |
ConnectiveJanusPredicate(List<JanusGraphPredicate> predicates) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNegation()
Whether this predicate has a predicate that is semantically its negation.
|
boolean |
isValidCondition(Object condition)
Whether the given condition is a valid condition for this predicate.
|
boolean |
isValidValueType(Class<?> clazz)
Whether the given class is a valid data type for a value to which this predicate may be applied.
|
JanusGraphPredicate |
negate()
Returns the negation of this predicate if it exists, otherwise an exception is thrown.
|
boolean |
test(Object value,
Object condition) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
isQNF
and, or
containsAll, equals, hashCode
parallelStream, stream
public ConnectiveJanusPredicate()
public ConnectiveJanusPredicate(List<JanusGraphPredicate> predicates)
public boolean isValidCondition(Object condition)
JanusGraphPredicate
For instance, the Cmp.GREATER_THAN
would require that the condition is comparable and not null.
isValidCondition
in interface JanusGraphPredicate
public boolean isValidValueType(Class<?> clazz)
JanusGraphPredicate
For instance, the Cmp.GREATER_THAN
can only be applied to Comparable
values.
isValidValueType
in interface JanusGraphPredicate
public boolean hasNegation()
JanusGraphPredicate
Cmp.EQUAL
and Cmp.NOT_EQUAL
are negatives of each other.hasNegation
in interface JanusGraphPredicate
public JanusGraphPredicate negate()
JanusGraphPredicate
JanusGraphPredicate.hasNegation()
first.negate
in interface BiPredicate<Object,Object>
negate
in interface JanusGraphPredicate
public boolean test(Object value, Object condition)
test
in interface BiPredicate<Object,Object>
test
in interface JanusGraphPredicate
Copyright © 2012–2018. All rights reserved.