Class NodeBuilder

    • Constructor Summary

      Constructors 
      Constructor Description
      NodeBuilder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <N extends NodeBuilder>
      N
      add​(N node)
      Add a child NodeBuilder.
      java.util.Iterator<Node> iterator()
      Returns an iterator over the child Node's.
      java.util.List<Node> nodes()
      Iterates over the child nodes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface it.smartio.docs.Node

        accept
    • Constructor Detail

      • NodeBuilder

        public NodeBuilder()
    • Method Detail

      • iterator

        public final java.util.Iterator<Node> iterator()
        Returns an iterator over the child Node's.
        Specified by:
        iterator in interface java.lang.Iterable<Node>
      • nodes

        public final java.util.List<Node> nodes()
        Iterates over the child nodes.
        Specified by:
        nodes in interface Node
      • add

        protected final <N extends NodeBuilder> N add​(N node)
        Add a child NodeBuilder.
        Parameters:
        node -