Class NodeCopy<E>

All Implemented Interfaces:

public class NodeCopy<E> extends Object implements Node<E>
Creates a copy of a Node.
AO Industries, Inc.
See Also:
  • Constructor Details

  • Method Details

    • getChildren

      public List<Node<E>> getChildren()
      Description copied from interface: Node
      Gets the list of direct children of this node. If this node cannot have children then return null. If this node can have children but there are none, return an empty List.
      Specified by:
      getChildren in interface Node<E>
    • getValue

      public E getValue()
      Description copied from interface: Node
      Gets the value contained in this node. Comparisons of this value will be performed using the equals method.
      Specified by:
      getValue in interface Node<E>