public class SimpleHierarchy<T> extends Object
Constructor and Description |
---|
SimpleHierarchy(Class<T> of) |
SimpleHierarchy(String name,
Class<T> of) |
Modifier and Type | Method and Description |
---|---|
SimpleHierarchy<T> |
addHierarchy(SimpleHierarchy<T> hierarchy) |
SimpleHierarchy<T> |
addLeaf(T child) |
SimpleHierarchy<T> |
addToHierarchy(String named,
T child) |
<U> SimpleHierarchy<U> |
convert(HierarchyConversion<T,U> conversion,
Class<U> of) |
String |
getName() |
void |
iterate(HierarchyVisitor<T> v) |
SimpleHierarchy<T> |
setName(String name) |
int |
size() |
public int size()
public String getName()
public SimpleHierarchy<T> setName(String name)
public SimpleHierarchy<T> addLeaf(T child)
public SimpleHierarchy<T> addToHierarchy(String named, T child)
public SimpleHierarchy<T> addHierarchy(SimpleHierarchy<T> hierarchy)
public void iterate(HierarchyVisitor<T> v)
public <U> SimpleHierarchy<U> convert(HierarchyConversion<T,U> conversion, Class<U> of)