public final class PathCopyNode<E> extends ImmutableNode<E,MutableNode<E>> implements MutableNode<E>
children
element
Modifier and Type | Method and Description |
---|---|
MutableNode<E> |
addChild(E e)
Add a child
|
Iterator<MutableNode<E>> |
childIterator() |
DuplicateOnWriteSimpleCollection<MutableNode<E>> |
getChildren() |
boolean |
removeChild(MutableNode<E> child)
Remove the node if it is a child of the recipient
|
getNumberOfChildren
getElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElement, getElementClass, getNumberOfChildren, isLeaf
public DuplicateOnWriteSimpleCollection<MutableNode<E>> getChildren()
public boolean removeChild(MutableNode<E> child)
OpenMutableNode
removeChild
in interface OpenMutableNode<E,MutableNode<E>>
child
- the node to removetrue
if the node was removedpublic MutableNode<E> addChild(E e)
NodeAppender
addChild
in interface NodeAppender<E,MutableNode<E>>
e
- The element of the child to addpublic Iterator<MutableNode<E>> childIterator()
childIterator
in interface OpenNode<E,MutableNode<E>>
childIterator
in class ImmutableNode<E,MutableNode<E>>
Copyright © 2014–2016. All rights reserved.