N
- is the actual class of the LabeledTreeNode
implementation.public interface LabeledTreeNode<N extends LabeledTreeNode<N>> extends TreeNode<N>
TreeNode
and provides the
feature to add labels to nodes.Modifier and Type | Method | Description |
---|---|---|
boolean |
addLabel(String label) |
This method adds a label to the
TreeNode . |
Set<String> |
getLabels() |
|
boolean |
hasLabel(String label) |
This method checks whether a certain label is present on this
TreeNode or not. |
boolean |
removeLabel(String label) |
Removes a label from the
TreeNode . |
getChildren, getName, getParent, hasChildren
boolean addLabel(String label)
TreeNode
.label
- is the label to be added.true
is returned in case the label was added and did
not exist before on this TreeNode
. false
is
returned otherwise.boolean removeLabel(String label)
TreeNode
.label
- is the label to be removed.true
is returned if the label was really removed and
existed. false
is returned otherwise.boolean hasLabel(String label)
TreeNode
or not.label
- is the label to be checked.true
is returned in case the label is present.
false
is returned otherwise.Copyright © 2014–2018 PureSol Technologies. All rights reserved.