org.hypergraphdb.query
Class AnyAtomCondition
java.lang.Object
org.hypergraphdb.query.AnyAtomCondition
- All Implemented Interfaces:
- HGAtomPredicate, HGQueryCondition
public class AnyAtomCondition
- extends java.lang.Object
- implements HGQueryCondition, HGAtomPredicate
This condition is satisfied by any and all atoms in the HyperGraph database.
That is, it is satisfied given HGHandle if and only if it is
an atom in the graph.
When translated to a query alone, it will result in an enumeration of all
atoms in the database.
- Author:
- Borislav Iordanov
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AnyAtomCondition
public AnyAtomCondition()
satisfies
public boolean satisfies(HyperGraph hg,
HGHandle handle)
- 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.handle - The atom on which to test the query condition.
- Returns:
true if the passed in parameter satisfies
the condition and false otherwise.
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
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object