public abstract class ConnectiveJanusPredicate extends ArrayList<JanusGraphPredicate> implements JanusGraphPredicate
JanusGraphPredicate.ConvertermodCount| 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, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitisQNFand, orcontainsAll, equals, hashCodeparallelStream, streampublic 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 JanusGraphPredicatepublic boolean isValidValueType(Class<?> clazz)
JanusGraphPredicate
For instance, the Cmp.GREATER_THAN can only be applied to Comparable values.
isValidValueType in interface JanusGraphPredicatepublic boolean hasNegation()
JanusGraphPredicateCmp.EQUAL and Cmp.NOT_EQUAL are negatives of each other.hasNegation in interface JanusGraphPredicatepublic JanusGraphPredicate negate()
JanusGraphPredicateJanusGraphPredicate.hasNegation() first.negate in interface BiPredicate<Object,Object>negate in interface JanusGraphPredicatepublic boolean test(Object value, Object condition)
test in interface BiPredicate<Object,Object>test in interface JanusGraphPredicateCopyright © 2012–2018. All rights reserved.