| Constructor and Description |
|---|
LeafNode(java.lang.Integer value)
Creates a new leaf.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfChildren()
Returns the number of children of this node.
|
int |
getShareIdentifier()
The leaf nodes in this tree correspond to shares.
|
int |
getThreshold()
Returns the threshold value of this node.
|
<F> F |
performVisitor(Visitor<F> visitor)
Uses the given
Visitor on this tree node. |
java.lang.String |
toString() |
public LeafNode(java.lang.Integer value)
value - the identifier of the new leaf between 0 and n-1 (inclusive)public int getShareIdentifier()
public int getNumberOfChildren()
TreeNodegetNumberOfChildren in interface TreeNodepublic int getThreshold()
TreeNodegetThreshold in interface TreeNodepublic <F> F performVisitor(Visitor<F> visitor) throws WrongAccessStructureException
TreeNodeVisitor on this tree node.performVisitor in interface TreeNodeF - type of the return result of the visitorvisitor - the visitor to useWrongAccessStructureException - if something is wrong with the access structure being traversedpublic java.lang.String toString()
toString in class java.lang.Object