java.lang.Object
net.botwithus.rs3.btree.TreeNode.Builder<S>
- Type Parameters:
S-
A builder for a tree node
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the nodeSet the failure node for the nodelistener(TreeNodePredicateListener<S> listener) Set the listener for the nodeSet the predicate for the nodeskin(TreeNodeSkin skin) Set the skin for the nodeSet the success node for the node
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
predicate
Set the predicate for the node- Parameters:
predicate- the predicate- Returns:
- the builder
-
success
Set the success node for the node- Parameters:
left- the success node- Returns:
- the builder
-
failure
Set the failure node for the node- Parameters:
right- the failure node- Returns:
- the builder
-
listener
Set the listener for the node- Parameters:
listener- the listener- Returns:
- the builder
-
skin
Set the skin for the node- Parameters:
skin- the skin- Returns:
- the builder
-
build
Build the node- Returns:
- the node
-