public class Or extends ArrayList<HGQueryCondition> implements HGQueryCondition, HGAtomPredicate
Represents the disjunction operator of a query condition. Several sub-clauses
can be combined with an or
operator using this class.
modCount
Constructor and Description |
---|
Or() |
Or(HGQueryCondition clause) |
Or(HGQueryCondition clause1,
HGQueryCondition clause2) |
Or(HGQueryCondition clause1,
HGQueryCondition clause2,
HGQueryCondition clause3) |
Or(HGQueryCondition clause1,
HGQueryCondition clause2,
HGQueryCondition clause3,
HGQueryCondition clause4) |
Or(HGQueryCondition clause1,
HGQueryCondition clause2,
HGQueryCondition clause3,
HGQueryCondition clause4,
HGQueryCondition clause5) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object x) |
boolean |
satisfies(HyperGraph hg,
HGHandle value)
Check whether a given
Object satisfies this
query condition. |
String |
toString() |
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, hashCode
public Or()
public Or(HGQueryCondition clause)
public Or(HGQueryCondition clause1, HGQueryCondition clause2)
public Or(HGQueryCondition clause1, HGQueryCondition clause2, HGQueryCondition clause3)
public Or(HGQueryCondition clause1, HGQueryCondition clause2, HGQueryCondition clause3, HGQueryCondition clause4)
public Or(HGQueryCondition clause1, HGQueryCondition clause2, HGQueryCondition clause3, HGQueryCondition clause4, HGQueryCondition clause5)
public boolean satisfies(HyperGraph hg, HGHandle value)
HGAtomPredicate
Check whether a given Object
satisfies this
query condition.
satisfies
in interface HGAtomPredicate
hg
- The HyperGraph
instance.value
- The atom on which to test the query condition.true
if the passed in parameter satisfies
the condition and false
otherwise.public Object clone()
clone
in class ArrayList<HGQueryCondition>
public String toString()
toString
in class AbstractCollection<HGQueryCondition>
public boolean equals(Object x)
equals
in interface Collection<HGQueryCondition>
equals
in interface List<HGQueryCondition>
equals
in class AbstractList<HGQueryCondition>
Copyright © 2015. All rights reserved.