public class TreeNodeDeepCounterDef extends Object
| Modifier and Type | Field and Description |
|---|---|
static WeakHashMap<TreeNode,Integer> |
deepCounter |
| Constructor and Description |
|---|
TreeNodeDeepCounterDef() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
getDeepCounterOf(TreeNode tn) |
static int |
getNodesCountOf(TreeNode tn) |
static void |
onTreeNodeAdded(TreeNode tn,
Integer index,
Object child) |
static void |
onTreeNodeRemoved(TreeNode tn,
Integer index,
Object child) |
protected static void |
resetDeepCounterOf(TreeNode tn,
Set<TreeNode> visited) |
static void |
setDeepCounterOf(TreeNode tn,
Integer v) |
public static final WeakHashMap<TreeNode,Integer> deepCounter
public static int getNodesCountOf(TreeNode tn)
Copyright © 2017. All rights reserved.