Class Hierarchy.RootNode

    • Field Detail

      • size

        final int size
    • Constructor Detail

      • RootNode

        public RootNode​(java.util.Map<java.lang.String,​java.lang.Object> map)
      • RootNode

        private RootNode​(java.util.Map<java.lang.String,​java.lang.Object> map,
                         IntCounter size)
    • Method Detail

      • parent

        public java.util.Optional<? extends Hierarchy.Folder> parent()
        Description copied from interface: NamedNode
        Return the parent of this node. Only the root will return an empty Optional. Each hierarchy has a single root.
        Specified by:
        parent in interface NamedNode
        Overrides:
        parent in class Hierarchy.Node
        Returns:
        the parent or an empty Optional in the case of the root node.