org.hypergraphdb.query
Class Not
java.lang.Object
org.hypergraphdb.query.Not
- All Implemented Interfaces:
- HGAtomPredicate, HGQueryCondition
public class Not
- extends java.lang.Object
- implements HGQueryCondition, HGAtomPredicate
A generic negating HGQueryCondition.
- Author:
- Borislav Iordanov
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Not
public Not()
Not
public Not(HGAtomPredicate negated)
satisfies
public boolean satisfies(HyperGraph hg,
HGHandle value)
- Description copied from interface:
HGAtomPredicate
Check whether a given Object satisfies this
query condition.
- Specified by:
satisfies in interface HGAtomPredicate
- Parameters:
hg - The HyperGraph instance.value - The atom on which to test the query condition.
- Returns:
true if the passed in parameter satisfies
the condition and false otherwise.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object x)
- Overrides:
equals in class java.lang.Object
getPredicate
public HGAtomPredicate getPredicate()
setPredicate
public void setPredicate(HGAtomPredicate predicate)