diff --git a/src/main/java/net/kemitix/node/Node.java b/src/main/java/net/kemitix/node/Node.java index a8dccdf..9c432dc 100644 --- a/src/main/java/net/kemitix/node/Node.java +++ b/src/main/java/net/kemitix/node/Node.java @@ -56,7 +56,7 @@ public interface Node { * * @param parent the new parent node */ - void setParent(final Node parent); + void setParent(Node parent); /** * Fetches the child nodes. @@ -70,7 +70,7 @@ public interface Node { * * @param child the node to add */ - void addChild(final Node child); + void addChild(Node child); /** * Creates a new node and adds it as a child of the current node. @@ -79,7 +79,7 @@ public interface Node { * * @return the new child node */ - Node createChild(final T child); + Node createChild(T child); /** * Populates the tree with the path of nodes, each being a child of the @@ -87,7 +87,7 @@ public interface Node { * * @param descendants the line of descendants from the current node */ - void createDescendantLine(final List descendants); + void createDescendantLine(List descendants); /** * Looks for a child node and returns it, creating a new child node if one @@ -97,7 +97,7 @@ public interface Node { * * @return the found or created child node */ - Node findOrCreateChild(final T child); + Node findOrCreateChild(T child); /** * Fetches the node for the child if present. @@ -106,7 +106,7 @@ public interface Node { * * @return an {@link Optional} containing the child node if found */ - Optional> getChild(final T child); + Optional> getChild(T child); /** * Checks if the node is an ancestor. @@ -115,7 +115,7 @@ public interface Node { * * @return true if the node is an ancestor */ - boolean isChildOf(final Node node); + boolean isChildOf(Node node); /** * Walks the node tree using the path to select each child. @@ -124,7 +124,7 @@ public interface Node { * * @return the child or null */ - Optional> walkTree(final List path); + Optional> walkTree(List path); /** * Places the node in the tree under by the path. Intervening empty