org.jrdf.graph.global.molecule
Class NewMoleculeImpl
java.lang.Object
org.jrdf.graph.global.molecule.NewMoleculeImpl
- All Implemented Interfaces:
- NewMolecule
public class NewMoleculeImpl
- extends Object
- implements NewMolecule
NewMoleculeImpl
public NewMoleculeImpl(NewMoleculeComparator newComparator,
MergeSubmolecules newMoleculeMerger)
NewMoleculeImpl
public NewMoleculeImpl(NewMoleculeComparator newComparator,
MergeSubmolecules newMoleculeMerger,
Triple... rootTriples)
NewMoleculeImpl
public NewMoleculeImpl(NewMoleculeComparator newComparator,
MergeSubmolecules newMoleculeMerger,
NewMolecule... childMolecules)
getHeadTriple
public Triple getHeadTriple()
- Specified by:
getHeadTriple
in interface NewMolecule
remove
public void remove(Triple triple)
- Specified by:
remove
in interface NewMolecule
getTriples
public SortedSet<Triple> getTriples()
add
public NewMolecule add(Triple triple)
- Specified by:
add
in interface NewMolecule
add
public NewMolecule add(Triple triple,
NewMolecule newMolecule)
- Specified by:
add
in interface NewMolecule
add
public NewMolecule add(Triple triple,
Triple newTriple)
- Specified by:
add
in interface NewMolecule
specialAdd
public void specialAdd(NewMolecule molecule)
- Specified by:
specialAdd
in interface NewMolecule
add
public NewMolecule add(NewMolecule childMolecule)
- Specified by:
add
in interface NewMolecule
contains
public boolean contains(Triple triple)
- Specified by:
contains
in interface NewMolecule
contains
public boolean contains(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
contains
public boolean contains(NewMolecule molecule)
- Specified by:
contains
in interface NewMolecule
getRootTriples
public Iterator<Triple> getRootTriples()
- Specified by:
getRootTriples
in interface NewMolecule
getSubMolecules
public Set<NewMolecule> getSubMolecules(Triple rootTriple)
- Specified by:
getSubMolecules
in interface NewMolecule
tailTriples
public Iterator<Triple> tailTriples()
find
public ClosableIterator<Triple> find(Triple triple)
iterator
public Iterator<Triple> iterator()
add
public NewMolecule add(Set<Triple> set)
size
public int size()
- Specified by:
size
in interface NewMolecule
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object