summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2017-02-17 02:19:59 -0500
committerbculkin2442 <bjculkin@mix.wvu.edu>2017-02-17 02:19:59 -0500
commit699c2890ca50f9b33ee8e228e544105754b0daca (patch)
tree22a2463d973814d40e25a3d6a0efb35f662ca6e9 /BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java
parentf43f4f79e2b90a637b1eaef34cd8d10b69333db6 (diff)
IList is now iterable. No more useless toIterable()s :)
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java b/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java
index 1a07cbb..1d132fa 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java
@@ -33,7 +33,7 @@ public class TapeChanger<T> implements Tape<T> {
tapes.insertBefore(current);
for(Tape<T> tp : others) {
- tapes.insertAfter(others);
+ tapes.insertAfter(tp);
tapes.right();
}
@@ -47,7 +47,7 @@ public class TapeChanger<T> implements Tape<T> {
* @return The item the tape is on.
*/
public T item() {
- if(currentTape == null) return false;
+ if(currentTape == null) return null;
return currentTape.item();
}
@@ -176,7 +176,7 @@ public class TapeChanger<T> implements Tape<T> {
* @return Whether the cursor was moved right.
*/
public boolean right(int amt) {
- if(currentTape == null) return;
+ if(currentTape == null) return false;
return currentTape.right(amt);
}
@@ -198,7 +198,7 @@ public class TapeChanger<T> implements Tape<T> {
@Override
public boolean isDoubleSided() {
- if(currentTape == null) return;
+ if(currentTape == null) return false;
return currentTape.isDoubleSided();
}