org.jrdf.graph.global.molecule
Class HeadMoleculeImpl
java.lang.Object
org.jrdf.graph.global.molecule.HeadMoleculeImpl
- All Implemented Interfaces:
- NewMolecule
public class HeadMoleculeImpl
- extends Object
- implements NewMolecule
HeadMoleculeImpl
public HeadMoleculeImpl(Triple triple)
getHeadTriple
public Triple getHeadTriple()
- Specified by:
getHeadTriple
in interface NewMolecule
find
public Iterator<Triple> find(Triple triple)
contains
public boolean contains(Triple triple)
- Specified by:
contains
in interface NewMolecule
iterator
public Iterator<Triple> iterator()
moleculeIterator
public Iterator<Molecule> moleculeIterator()
add
public NewMolecule add(Triple triple)
- Specified by:
add
in interface NewMolecule
add
public NewMolecule add(NewMolecule childMolecule)
- Specified by:
add
in interface NewMolecule
add
public Molecule add(Set<Triple> triples)
size
public int size()
- Specified by:
size
in interface NewMolecule
contains
public boolean contains(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
tailTriples
public Iterator<Triple> tailTriples()
remove
public void remove(Triple triple)
- Specified by:
remove
in interface NewMolecule
getTriples
public SortedSet<Triple> getTriples()
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
add
public NewMolecule add(Triple triple,
NewMolecule newMolecule)
- Specified by:
add
in interface NewMolecule
specialAdd
public void specialAdd(NewMolecule molecule)
- Specified by:
specialAdd
in interface NewMolecule
add
public NewMolecule add(Triple triple,
Triple newTriple)
- Specified by:
add
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