org.hypergraphdb.query
Class AtomValueCondition
java.lang.Object
org.hypergraphdb.query.SimpleValueCondition
org.hypergraphdb.query.AtomValueCondition
- All Implemented Interfaces:
- HGAtomPredicate, HGQueryCondition
- Direct Known Subclasses:
- TypedValueCondition, ValueAsPredicateOnly
public class AtomValueCondition
- extends SimpleValueCondition
The AtomValueCondition represents a query condition on
the atom value. The condition specifies a comparison operator and
value to compare against. The possible comparison operators are
the constants listed in the ComparisonOperator class.
The value compared against must be of a recognizable HGAtomType.
- Author:
- Borislav Iordanov
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AtomValueCondition
public AtomValueCondition()
AtomValueCondition
public AtomValueCondition(java.lang.Object value)
AtomValueCondition
public AtomValueCondition(java.lang.Object value,
ComparisonOperator operator)
satisfies
public boolean satisfies(HyperGraph hg,
HGHandle handle)
- Description copied from interface:
HGAtomPredicate
Check whether a given Object satisfies this
query condition.
- 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.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class SimpleValueCondition
equals
public boolean equals(java.lang.Object x)
- Overrides:
equals in class SimpleValueCondition