public class Tree<T> extends HashMap<T,Tree<T>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Tree() |
Tree(Map.Entry<T,Tree<T>>... children) |
Tree(T... children) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Map.Entry<T,Tree<T>> |
createTree(T key,
Tree<T> tree) |
List<T> |
getLeafObjects() |
List<Tree<T>> |
getLeafTrees() |
List<T> |
getObjectsAtDepth(int depth) |
List<Tree<T>> |
getTreesAtDepth(int depth) |
boolean |
isLeaf() |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic Tree()
public Tree(T... children)
Copyright © 2010-2014. All Rights Reserved.