public final class ImmutableNode<T> extends MutableNode<T>
element, mutableChildren, mutableParent
Constructor and Description |
---|
ImmutableNode(Node<T> node) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
MutableNode<T> child) |
void |
add(List<MutableNode<T>> children) |
void |
add(MutableNode<T> child) |
void |
add(MutableNode<T> child1,
MutableNode<T> child2) |
void |
add(MutableNode<T> child1,
MutableNode<T> child2,
MutableNode<T> child3) |
void |
add(MutableNode<T> child1,
MutableNode<T> child2,
MutableNode<T> child3,
MutableNode<T> child4) |
void |
add(MutableNode<T> child1,
MutableNode<T> child2,
MutableNode<T> child3,
MutableNode<T> child4,
MutableNode<T> child5) |
static <T> ImmutableNode<T> |
copyOf(Node<T> node) |
void |
remove(int index) |
void |
remove(MutableNode<T> child) |
void |
removeAllChildren() |
void |
removeFromParent()
Removes the subtree rooted at this node from the tree, giving this node an absent parent.
|
void |
setElement(T element) |
getChildren, getElement, getMutableParent, getParent, of, setMutableParent, setParent
getElementPath, getLevel, getPath, isAncestor, isChild, isLeaf, isParent, isRoot
public ImmutableNode(Node<T> node)
public static <T> ImmutableNode<T> copyOf(Node<T> node)
public void setElement(T element)
setElement
in class MutableNode<T>
public void add(List<MutableNode<T>> children)
add
in class MutableNode<T>
public void add(MutableNode<T> child1, MutableNode<T> child2)
add
in class MutableNode<T>
public void add(MutableNode<T> child1, MutableNode<T> child2, MutableNode<T> child3)
add
in class MutableNode<T>
public void add(MutableNode<T> child1, MutableNode<T> child2, MutableNode<T> child3, MutableNode<T> child4)
add
in class MutableNode<T>
public void add(MutableNode<T> child1, MutableNode<T> child2, MutableNode<T> child3, MutableNode<T> child4, MutableNode<T> child5)
add
in class MutableNode<T>
public void add(MutableNode<T> child)
add
in class MutableNode<T>
public void add(int index, MutableNode<T> child)
add
in class MutableNode<T>
public void remove(MutableNode<T> child)
remove
in class MutableNode<T>
public void remove(int index)
remove
in class MutableNode<T>
public void removeAllChildren()
removeAllChildren
in class MutableNode<T>
public void removeFromParent()
MutableNode
removeFromParent
in class MutableNode<T>
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.