Package io.molr.mole.core.tree
Class StrandFactoryImpl
- java.lang.Object
-
- io.molr.mole.core.tree.StrandFactoryImpl
-
- All Implemented Interfaces:
StrandFactory
public class StrandFactoryImpl extends Object implements StrandFactory
-
-
Constructor Summary
Constructors Constructor Description StrandFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Strand
createChildStrand(Strand parent)
Optional<Strand>
parentOf(Strand strand)
Strand
rootStrand()
-
-
-
Method Detail
-
createChildStrand
public Strand createChildStrand(Strand parent)
- Specified by:
createChildStrand
in interfaceStrandFactory
-
rootStrand
public Strand rootStrand()
- Specified by:
rootStrand
in interfaceStrandFactory
-
parentOf
public Optional<Strand> parentOf(Strand strand)
- Specified by:
parentOf
in interfaceStrandFactory
-
-