diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/bjc/data/Tree.java | 4 | ||||
| -rw-r--r-- | src/main/java/bjc/esodata/SingleTape.java | 18 |
2 files changed, 15 insertions, 7 deletions
diff --git a/src/main/java/bjc/data/Tree.java b/src/main/java/bjc/data/Tree.java index 27dcf11..9a4caa6 100644 --- a/src/main/java/bjc/data/Tree.java +++ b/src/main/java/bjc/data/Tree.java @@ -232,7 +232,7 @@ public class Tree<ContainedType> implements ITree<ContainedType> { * override it. */ - protected <NewType> NewType internalCollapse( + private <NewType> NewType internalCollapse( final Function<ContainedType, NewType> leafTransform, final BiFunction<ContainedType, IList<NewType>, NewType> nodeCollapser) { if (hasChildren) { @@ -249,7 +249,7 @@ public class Tree<ContainedType> implements ITree<ContainedType> { return leafTransform.apply(data); } - protected void internalToString(final StringBuilder builder, final int indentLevel, + private void internalToString(final StringBuilder builder, final int indentLevel, final boolean initial) { if (!initial) { for (int i = 0; i < indentLevel; i++) { diff --git a/src/main/java/bjc/esodata/SingleTape.java b/src/main/java/bjc/esodata/SingleTape.java index f6f87be..ec56e2b 100644 --- a/src/main/java/bjc/esodata/SingleTape.java +++ b/src/main/java/bjc/esodata/SingleTape.java @@ -20,15 +20,21 @@ import java.util.ArrayList; * @author bjculkin */ public class SingleTape<T> implements Tape<T> { - /* Our backing store. */ + /** + * Our backing store. + */ protected ArrayList<T> backing; - /* Our position in the list. */ + /** + * Our position in the list. + */ protected int pos; - /* Whether to auto-extend the list on the left with nulls. */ + /** + * Whether to auto-extend the list on the left with nulls. + */ protected boolean autoExtend; /** - * Create a new tape with the specified contents that doesn't autoextend. + * Create a new tape with the specified contents that doesn't auto-extend. * * @param vals * The values to put on the tape. @@ -44,7 +50,9 @@ public class SingleTape<T> implements Tape<T> { } } - /** Create a new empty tape that doesn't autoextend. */ + /** + * Create a new empty tape that doesn't auto-extend. + */ public SingleTape() { this(false); } |
