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
.
operator, value
Constructor and Description |
---|
AtomValueCondition() |
AtomValueCondition(Object value) |
AtomValueCondition(Object value,
ComparisonOperator operator) |
AtomValueCondition(Ref<Object> value,
ComparisonOperator operator) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object x) |
int |
hashCode() |
boolean |
satisfies(HyperGraph hg,
HGHandle handle)
Check whether a given
Object satisfies this
query condition. |
String |
toString() |
compareToValue, getOperator, getValue, getValueReference, setOperator, setValue, setValueReference
public AtomValueCondition()
public AtomValueCondition(Object value)
public AtomValueCondition(Ref<Object> value, ComparisonOperator operator)
public AtomValueCondition(Object value, ComparisonOperator operator)
public boolean satisfies(HyperGraph hg, HGHandle handle)
HGAtomPredicate
Check whether a given Object
satisfies this
query condition.
hg
- The HyperGraph
instance.handle
- The atom on which to test the query condition.true
if the passed in parameter satisfies
the condition and false
otherwise.public int hashCode()
hashCode
in class SimpleValueCondition
public boolean equals(Object x)
equals
in class SimpleValueCondition
Copyright © 2015. All rights reserved.