From df94066e3af02ff02d5ab4d033a3d603f743234c Mon Sep 17 00:00:00 2001 From: bjculkin Date: Mon, 12 Feb 2018 22:45:04 -0500 Subject: Formatting pass --- .../main/java/bjc/utils/esodata/DoubleTape.java | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'base/src/main/java/bjc/utils/esodata/DoubleTape.java') diff --git a/base/src/main/java/bjc/utils/esodata/DoubleTape.java b/base/src/main/java/bjc/utils/esodata/DoubleTape.java index a0031ec..bfc58a4 100644 --- a/base/src/main/java/bjc/utils/esodata/DoubleTape.java +++ b/base/src/main/java/bjc/utils/esodata/DoubleTape.java @@ -20,15 +20,15 @@ package bjc.utils.esodata; * Flip refers to the entire tape for 'obvious' reasons. * * @param - * The element type of the tape. + * The element type of the tape. * * @author bjculkin */ public class DoubleTape implements Tape { /* The front-side of the tape. */ - private Tape front; + private Tape front; /* The back-side of the tape. */ - private Tape back; + private Tape back; /** Create a new empty double-sided tape that doesn't autoextend. */ public DoubleTape() { @@ -40,7 +40,7 @@ public class DoubleTape implements Tape { * auto-extension policy. * * @param autoExtnd - * Whether or not to auto-extend the tape to the right w/ nulls. + * Whether or not to auto-extend the tape to the right w/ nulls. */ public DoubleTape(final boolean autoExtnd) { front = new SingleTape<>(autoExtnd); @@ -107,7 +107,7 @@ public class DoubleTape implements Tape { public boolean left(final int amt) { final boolean succ = front.left(amt); - if (succ) { + if(succ) { back.right(amt); } @@ -123,7 +123,7 @@ public class DoubleTape implements Tape { public boolean right(final int amt) { final boolean succ = front.right(amt); - if (succ) { + if(succ) { back.left(amt); } @@ -160,19 +160,19 @@ public class DoubleTape implements Tape { @Override public boolean equals(final Object obj) { - if (this == obj) return true; - if (obj == null) return false; - if (!(obj instanceof DoubleTape)) return false; + if(this == obj) return true; + if(obj == null) return false; + if(!(obj instanceof DoubleTape)) return false; final DoubleTape other = (DoubleTape) obj; - if (back == null) { - if (other.back != null) return false; - } else if (!back.equals(other.back)) return false; + if(back == null) { + if(other.back != null) return false; + } else if(!back.equals(other.back)) return false; - if (front == null) { - if (other.front != null) return false; - } else if (!front.equals(other.front)) return false; + if(front == null) { + if(other.front != null) return false; + } else if(!front.equals(other.front)) return false; return true; } -- cgit v1.2.3