diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-10-06 19:15:07 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-10-06 19:15:07 -0400 |
| commit | f3ecbf3ed7d496ad7652a081fcafa494846b2878 (patch) | |
| tree | dcf82e9769c3ea5bbb6bfee57d186c9571d0d43b /src/main/java | |
| parent | 51825f93a1e7ba9ba739070a5cc5b69ad9e7ddd8 (diff) | |
Info cleanup
Diffstat (limited to 'src/main/java')
| -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); } |
