public class IsCondition extends Object implements HGQueryCondition, HGAtomPredicate
An "identity" condition that evaluates to true for a specific handle. It translates to a result set containing the specified atom handle.
Constructor and Description |
---|
IsCondition() |
IsCondition(HGHandle atomHandle) |
IsCondition(Ref<HGHandle> atomHandle) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
HGHandle |
getAtomHandle() |
Ref<HGHandle> |
getAtomHandleReference() |
int |
hashCode() |
boolean |
satisfies(HyperGraph graph,
HGHandle handle)
Check whether a given
Object satisfies this
query condition. |
void |
setAtomHandle(HGHandle atomHandle) |
void |
setAtomHandleReference(Ref<HGHandle> atomHandle) |
public IsCondition()
public IsCondition(HGHandle atomHandle)
public HGHandle getAtomHandle()
public void setAtomHandle(HGHandle atomHandle)
public boolean satisfies(HyperGraph graph, HGHandle handle)
HGAtomPredicate
Check whether a given Object
satisfies this
query condition.
satisfies
in interface HGAtomPredicate
graph
- 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.Copyright © 2015. All rights reserved.