Class Tree<T>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<T,Tree<T>>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.Tree<T>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<T,Tree<T>>
public class Tree<T> extends HashMap<T,Tree<T>> implements Serializable
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTree(Tree<T> tree)
List<T>
getLeafObjects()
List<Tree<T>>
getLeafTrees()
List<T>
getObjectsAtDepth(int depth)
List<Tree<T>>
getTreesAtDepth(int depth)
boolean
isLeaf()
List<Tree<T>>
splitParents()
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Tree
public Tree()
-
Tree
@SafeVarargs public Tree(T... children)
-
Tree
@SafeVarargs public Tree(Map.Entry<T,Tree<T>>... children)
-
-