/**
* {@inheritDoc}
*/
+ public Node<E> getChild(E element) {
+ for (Node<E> childNode: children) {
+ if (childNode.getElement().equals(element)) {
+ return childNode;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public boolean hasChild(Node<E> childNode) {
return children.contains(childNode);
}