X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Fdata%2FNode.java;h=560fc34ce7e9619e47c0df3872c4ae11040fc07d;hb=f9979af9d9963cc5ad92ddb63b6193cba2bb1df1;hp=2f6ec742b6fbb274ed2d2c86fa8e5bd5178982bd;hpb=593994cd718f3636d14e11686e0e66c0512f6516;p=jSite2.git diff --git a/src/net/pterodactylus/util/data/Node.java b/src/net/pterodactylus/util/data/Node.java index 2f6ec74..560fc34 100644 --- a/src/net/pterodactylus/util/data/Node.java +++ b/src/net/pterodactylus/util/data/Node.java @@ -54,6 +54,17 @@ public interface Node extends Iterable> { public Node 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 + * null if this node does not have a child node + * containing the given element + */ + public Node getChild(E element); + + /** * Returns whether the given node is a direct child of this node. * * @param childNode