summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/funcdata/bst/DirectedWalkFunction.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/bjc/funcdata/bst/DirectedWalkFunction.java')
-rw-r--r--src/main/java/bjc/funcdata/bst/DirectedWalkFunction.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/bjc/funcdata/bst/DirectedWalkFunction.java b/src/main/java/bjc/funcdata/bst/DirectedWalkFunction.java
index ac2b918..4f64339 100644
--- a/src/main/java/bjc/funcdata/bst/DirectedWalkFunction.java
+++ b/src/main/java/bjc/funcdata/bst/DirectedWalkFunction.java
@@ -6,7 +6,7 @@ package bjc.funcdata.bst;
* @author ben
*
* @param <T>
- * The type of element stored in the walked tree
+ * The type of element stored in the walked tree
*/
@FunctionalInterface
public interface DirectedWalkFunction<T> {
@@ -19,13 +19,11 @@ public interface DirectedWalkFunction<T> {
/** Specifies that the function has failed. */
FAILURE,
/**
- * Specifies that the function wants to move left in the tree
- * next.
+ * Specifies that the function wants to move left in the tree next.
*/
LEFT,
/**
- * Specifies that the function wants to move right in the tree
- * next.
+ * Specifies that the function wants to move right in the tree next.
*/
RIGHT,
/** Specifies that the function has succesfully completed */
@@ -36,7 +34,7 @@ public interface DirectedWalkFunction<T> {
* Perform a directed walk on a node of a tree.
*
* @param element
- * The data stored in the node currently being visited.
+ * The data stored in the node currently being visited.
*
* @return The way the function wants the walk to go next.
*/