public class MutableNode<T> extends AbstractNode<T>
| Modifier and Type | Field and Description | 
|---|---|
protected T | 
element  | 
protected List<MutableNode<T>> | 
mutableChildren  | 
protected com.google.common.base.Optional<MutableNode<T>> | 
mutableParent  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
MutableNode()  | 
  | 
MutableNode(T element)  | 
| 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> MutableNode<T> | 
copyOf(Node<T> node)  | 
List<Node<T>> | 
getChildren()
Returns an immutable list of the nodes current children 
 | 
T | 
getElement()  | 
com.google.common.base.Optional<MutableNode<T>> | 
getMutableParent()  | 
com.google.common.base.Optional<Node<T>> | 
getParent()  | 
static <T> MutableNode<T> | 
of(T element)  | 
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)  | 
protected void | 
setMutableParent(com.google.common.base.Optional<MutableNode<T>> parent)  | 
protected void | 
setParent(MutableNode<T> parent)  | 
getElementPath, getLevel, getPath, isAncestor, isChild, isLeaf, isParent, isRootprotected com.google.common.base.Optional<MutableNode<T>> mutableParent
protected List<MutableNode<T>> mutableChildren
protected MutableNode()
public MutableNode(T element)
public static <T> MutableNode<T> of(T element)
public static <T> MutableNode<T> copyOf(Node<T> node)
public void setElement(T element)
public T getElement()
public com.google.common.base.Optional<MutableNode<T>> getMutableParent()
protected void setMutableParent(com.google.common.base.Optional<MutableNode<T>> parent)
protected void setParent(MutableNode<T> parent)
public List<Node<T>> getChildren()
public void remove(MutableNode<T> child)
public void remove(int index)
public void add(List<MutableNode<T>> children)
public void add(MutableNode<T> child1, MutableNode<T> child2)
public void add(MutableNode<T> child1, MutableNode<T> child2, MutableNode<T> child3)
public void add(MutableNode<T> child1, MutableNode<T> child2, MutableNode<T> child3, MutableNode<T> child4)
public void add(MutableNode<T> child1, MutableNode<T> child2, MutableNode<T> child3, MutableNode<T> child4, MutableNode<T> child5)
public void add(MutableNode<T> child)
public void add(int index, MutableNode<T> child)
public void removeAllChildren()
public void removeFromParent()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.