summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/esodata
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2018-03-01 14:16:15 -0500
committerbjculkin <bjculkin@mix.wvu.edu>2018-03-01 14:16:15 -0500
commit0b373102f64fd7bfd25837a24ffb4ccb44b9d7e9 (patch)
treefe947781da6ca891a3e25a3461f3394a7953d080 /base/src/main/java/bjc/utils/esodata
parent2d8f0aba5565b292f17695afd276143a4f71c72b (diff)
Finish most of CL formatting.
There are a couple of unimplemented directives, but the only ones I'd consider anywhere near crucial would be the floating-point ones, which I'm not sure what I should do with them.
Diffstat (limited to 'base/src/main/java/bjc/utils/esodata')
-rw-r--r--base/src/main/java/bjc/utils/esodata/SingleTape.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/base/src/main/java/bjc/utils/esodata/SingleTape.java b/base/src/main/java/bjc/utils/esodata/SingleTape.java
index 5218269..287f22d 100644
--- a/base/src/main/java/bjc/utils/esodata/SingleTape.java
+++ b/base/src/main/java/bjc/utils/esodata/SingleTape.java
@@ -56,6 +56,20 @@ public class SingleTape<T> implements Tape<T> {
}
/**
+ * Create a new tape with values taken from an iterable.
+ *
+ * @param itr
+ * The iterable to get values from.
+ */
+ public SingleTape(Iterable<T> itr) {
+ this(false);
+
+ for(T itm : itr) {
+ backing.add(itm);
+ }
+ }
+
+ /**
* Create a new empty tape that follows the specified auto-extension
* policy.
*