org.omnaest.utils.structure.hierarchy
Class TokenMonoHierarchy<E,V>
java.lang.Object
org.omnaest.utils.structure.hierarchy.TokenMonoHierarchy<E,V>
- Type Parameters:
E - ElementV - Value
public class TokenMonoHierarchy<E,V>
- extends Object
A TokenMonoHierarchy allows to create hierarchical structures which are based on Lists of elements.
If you take e.g. a String based TokenMonoHierarchy, the following two List of Strings will create a
TokenMonoHierarchy:
- "node1","node1","node1":value1
- "node1","node1","node2":value2
- "node1","node2":value3
- "node1","node2":value4
that looks like:
node1+
|-node1+
| |-node1:value1
| |-node2:value2
|-node2:value3,value4
- Author:
- Omnaest
tokenElementNodeRoot
protected TokenMonoHierarchy.TokenElementNode tokenElementNodeRoot
TokenMonoHierarchy
public TokenMonoHierarchy()
addTokenElementPathWithValues
public TokenMonoHierarchy<E,V> addTokenElementPathWithValues(TokenMonoHierarchy.TokenElementPath<E> tokenElementPath,
V... values)
- Parameters:
tokenElementPath - values -
- Returns:
- See Also:
TokenMonoHierarchy.TokenElementPath
getNavigator
public TokenMonoHierarchy.Navigator getNavigator()
- Returns a
TokenMonoHierarchy.Navigator for the TokenMonoHierarchy
- Returns:
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.