add getChild(E)
[jSite2.git] / src / net / pterodactylus / util / data / Node.java
index 2f6ec74..560fc34 100644 (file)
@@ -54,6 +54,17 @@ public interface Node<E> extends Iterable<Node<E>> {
        public Node<E> getChild(int index);
 
        /**
+        * Returns the direct child node that contains the given element.
+        * 
+        * @param element
+        *            The element
+        * @return The direct child node containing the given element, or
+        *         <code>null</code> if this node does not have a child node
+        *         containing the given element
+        */
+       public Node<E> getChild(E element);
+
+       /**
         * Returns whether the given node is a direct child of this node.
         * 
         * @param childNode