public final class DistributedTreeUtil extends Object
DistributedTree
.Modifier and Type | Method and Description |
---|---|
static String |
child(String node)
Returns the last component of a node's full path (i.e.
|
static String |
correctForRoot(String node)
Returns the full path of the given node, but if it's the root, returns the empty string.
|
static Iterable<String> |
iterate(String node)
Returns an
Iterable over a node's path components. |
static String |
parent(String node)
Returns the parent tree node of a given node.
|
public static String parent(String node)
node
- A tree node's full path.public static String child(String node)
node
- A tree node's full path.public static String correctForRoot(String node)
node
- A tree-node's full path.