Top Fields Constructors Methods
org.terracotta.context

pack-priv Class MutableTreeNode

extends AbstractTreeNode
Class Inheritance
Imports
java.util.ArrayList, .Collection, .Collections, .IdentityHashMap, .List, .Set, java.util.concurrent.CopyOnWriteArraySet

Field Summary

Modifier and TypeField and Description
private final ContextElement
private final CopyOnWriteArraySet<AbstractTreeNode>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv Set<AbstractTreeNode>
public ContextElement
getContext()

Implements org.terracotta.context.TreeNode.getContext.

Returns the context information associated with this node.
public Collection<ContextListener>
public Collection<List<? extends TreeNode>>
getPaths()

Implements org.terracotta.context.TreeNode.getPaths.

Returns the complete set of rooting paths for this context element.
pack-priv void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.terracotta.context.AbstractTreeNode:
addChildcleandumpSubtreegetChildrengetPathremoveChildtoTreeString

Field Detail

contextback to summary
private final ContextElement context
parentsback to summary
private final CopyOnWriteArraySet<AbstractTreeNode> parents

Constructor Detail

MutableTreeNodeback to summary
public MutableTreeNode(ContextElement context)

Method Detail

addedParentback to summary
pack-priv void addedParent(AbstractTreeNode parent)

Implements abstract org.terracotta.context.AbstractTreeNode.addedParent.

Annotations
@Override
getAncestorsback to summary
pack-priv Set<AbstractTreeNode> getAncestors()

Implements abstract org.terracotta.context.AbstractTreeNode.getAncestors.

Annotations
@Override
getContextback to summary
public ContextElement getContext()

Implements org.terracotta.context.TreeNode.getContext.

Doc from org.terracotta.context.TreeNode.getContext.

Returns the context information associated with this node.

Returns:ContextElement

node context information

Annotations
@Override
getListenersback to summary
public Collection<ContextListener> getListeners()

Implements abstract org.terracotta.context.AbstractTreeNode.getListeners.

Annotations
@Override
getPathsback to summary
public Collection<List<? extends TreeNode>> getPaths()

Implements org.terracotta.context.TreeNode.getPaths.

Doc from org.terracotta.context.TreeNode.getPaths.

Returns the complete set of rooting paths for this context element.

Returns:Collection<List<? extends TreeNode>>

the set of rooting paths

Annotations
@Override
removedParentback to summary
pack-priv void removedParent(AbstractTreeNode parent)

Implements abstract org.terracotta.context.AbstractTreeNode.removedParent.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override