public class Not extends java.lang.Object implements HGQueryCondition, HGAtomPredicate
A generic negating HGQueryCondition
.
Constructor and Description |
---|
Not() |
Not(HGAtomPredicate negated) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object x) |
HGAtomPredicate |
getPredicate() |
int |
hashCode() |
boolean |
satisfies(HyperGraph hg,
HGHandle value)
Check whether a given
Object satisfies this
query condition. |
void |
setPredicate(HGAtomPredicate predicate) |
java.lang.String |
toString() |
public Not()
public Not(HGAtomPredicate negated)
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 java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object x)
equals
in class java.lang.Object
public HGAtomPredicate getPredicate()
public void setPredicate(HGAtomPredicate predicate)