rename hasChildNode to hasChild
[jSite2.git] / src / net / pterodactylus / util / data / Node.java
index 37588b5..2f6ec74 100644 (file)
@@ -61,7 +61,18 @@ public interface Node<E> extends Iterable<Node<E>> {
         * @return <code>true</code> if the given node is a direct child of this
         *         node, <code>false</code> otherwise
         */
-       public boolean hasChildNode(Node<E> childNode);
+       public boolean hasChild(Node<E> childNode);
+
+       /**
+        * Returns whether this node contains a child node containing the given
+        * element.
+        * 
+        * @param element
+        *            The element
+        * @return <code>true</code> if this node contains a direct child node
+        *         containing the given element, <code>false</code> otherwise
+        */
+       public boolean hasChild(E element);
 
        /**
         * Returns the index of the given child node.