org.jrdf.graph.global.molecule
Class NewMoleculeImpl

java.lang.Object
  extended by org.jrdf.graph.global.molecule.NewMoleculeImpl
All Implemented Interfaces:
NewMolecule

public class NewMoleculeImpl
extends Object
implements NewMolecule


Constructor Summary
NewMoleculeImpl(NewMoleculeComparator newComparator, MergeSubmolecules newMoleculeMerger)
           
NewMoleculeImpl(NewMoleculeComparator newComparator, MergeSubmolecules newMoleculeMerger, NewMolecule... childMolecules)
           
NewMoleculeImpl(NewMoleculeComparator newComparator, MergeSubmolecules newMoleculeMerger, Triple... rootTriples)
           
 
Method Summary
 NewMolecule add(NewMolecule childMolecule)
           
 NewMolecule add(Set<Triple> set)
           
 NewMolecule add(Triple triple)
           
 NewMolecule add(Triple triple, NewMolecule newMolecule)
           
 NewMolecule add(Triple triple, Triple newTriple)
           
 boolean contains(NewMolecule molecule)
           
 boolean contains(SubjectNode subject, PredicateNode predicate, ObjectNode object)
           
 boolean contains(Triple triple)
           
 boolean equals(Object obj)
           
 ClosableIterator<Triple> find(Triple triple)
           
 Triple getHeadTriple()
           
 Iterator<Triple> getRootTriples()
           
 Set<NewMolecule> getSubMolecules(Triple rootTriple)
           
 SortedSet<Triple> getTriples()
           
 int hashCode()
           
 Iterator<Triple> iterator()
           
 void remove(Triple triple)
           
 int size()
           
 void specialAdd(NewMolecule molecule)
           
 Iterator<Triple> tailTriples()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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