Top Fields Constructors Methods
org.terracotta.context

pack-priv abstract Class AbstractTreeNode

extends Object
implements TreeNode
Class Inheritance
All Implemented Interfaces
org.terracotta.context.TreeNode, org.terracotta.context.WeakIdentityHashMap.Cleanable
Known Direct Subclasses
org.terracotta.context.MutableTreeNode, org.terracotta.context.RootNode
Imports
java.util.Arrays, .Collection, .Collections, .HashSet, .List, .Set, java.util.concurrent.CopyOnWriteArraySet

Field Summary

Modifier and TypeField and Description
private final CopyOnWriteArraySet<AbstractTreeNode>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
pack-priv abstract void
public void
public static String
dumpSubtree(int indent, TreeNode node)

pack-priv abstract Set<AbstractTreeNode>
public Set<? extends AbstractTreeNode>
getChildren()

Implements org.terracotta.context.TreeNode.getChildren.

Returns the immediate children of this context.
pack-priv abstract Collection<ContextListener>
public List<? extends TreeNode>
getPath()

Implements org.terracotta.context.TreeNode.getPath.

Returns the unique rooting path of this context element.
public boolean
pack-priv abstract void
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

childrenback to summary
private final CopyOnWriteArraySet<AbstractTreeNode> children

Constructor Detail

AbstractTreeNodeback to summary
pack-priv AbstractTreeNode()

Method Detail

addChildback to summary
public boolean addChild(AbstractTreeNode child)
addedParentback to summary
pack-priv abstract void addedParent(AbstractTreeNode child)
cleanback to summary
public void clean()

Implements org.terracotta.context.WeakIdentityHashMap.Cleanable.clean.

Annotations
@Override
dumpSubtreeback to summary
public static String dumpSubtree(int indent, TreeNode node)
getAncestorsback to summary
pack-priv abstract Set<AbstractTreeNode> getAncestors()
getChildrenback to summary
public Set<? extends AbstractTreeNode> getChildren()

Implements org.terracotta.context.TreeNode.getChildren.

Doc from org.terracotta.context.TreeNode.getChildren.

Returns the immediate children of this context.

Returns:Set<? extends AbstractTreeNode>

the context children

Annotations
@Override
getListenersback to summary
pack-priv abstract Collection<ContextListener> getListeners()
getPathback to summary
public List<? extends TreeNode> getPath()

Implements org.terracotta.context.TreeNode.getPath.

Doc from org.terracotta.context.TreeNode.getPath.

Returns the unique rooting path of this context element.

If this context element is not connected to a root in any ContextManager instance or is rooted via multiple distinct paths then an IllegalStateException will be thrown.

Returns:List<? extends TreeNode>

the unique rooting path

Annotations
@Override
removeChildback to summary
public boolean removeChild(AbstractTreeNode child)
removedParentback to summary
pack-priv abstract void removedParent(AbstractTreeNode child)
toTreeStringback to summary
public String toTreeString()

Implements org.terracotta.context.TreeNode.toTreeString.

Annotations
@Override