public static class EntityLinkTree.EntityLinkNode extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected Map<EntityLinkTree.Scope,EntityLinkTree.EntityLinkNode> | children | 
| protected EntityLinkTree.EntityLinkNode | parent | 
| protected EntityLinkTree.Scope | scope | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | EntityLinkNode(EntityLinkTree.Scope scope) | 
|   | EntityLinkNode(String scopeId,
              String scopeType) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | doForEveryChild(BiConsumer<Integer,EntityLinkTree.EntityLinkNode> childLevelConsumer)Iterate over all the children in all levels and apply the consumer. | 
| protected static void | doForEveryChild(int currentLevel,
               EntityLinkTree.EntityLinkNode node,
               BiConsumer<Integer,EntityLinkTree.EntityLinkNode> childLevelConsumer) | 
| boolean | equals(Object o) | 
| Collection<EntityLinkTree.EntityLinkNode> | getChildren()The direct children of this node. | 
| EntityLinkTree.EntityLinkNode | getParent()The parent node of this node, or  nullif this node is a root node. | 
| EntityLinkTree.EntityLinkNode | getRoot()Get the root node for this node. | 
| String | getScopeId()The scope id that this node represents. | 
| String | getScopeType()The scope type that this node represents. | 
| int | hashCode() | 
| boolean | isRoot()Whether this node is a root node, i.e. | 
protected final EntityLinkTree.Scope scope
protected EntityLinkTree.EntityLinkNode parent
protected Map<EntityLinkTree.Scope,EntityLinkTree.EntityLinkNode> children
protected EntityLinkNode(EntityLinkTree.Scope scope)
public String getScopeId()
public String getScopeType()
public EntityLinkTree.EntityLinkNode getRoot()
public boolean isRoot()
true if this node is a root nodepublic EntityLinkTree.EntityLinkNode getParent()
null if this node is a root node.public Collection<EntityLinkTree.EntityLinkNode> getChildren()
public void doForEveryChild(BiConsumer<Integer,EntityLinkTree.EntityLinkNode> childLevelConsumer)
childLevelConsumer - the consumer to be applied for every child on all levelsprotected static void doForEveryChild(int currentLevel,
                                      EntityLinkTree.EntityLinkNode node,
                                      BiConsumer<Integer,EntityLinkTree.EntityLinkNode> childLevelConsumer)