From df94066e3af02ff02d5ab4d033a3d603f743234c Mon Sep 17 00:00:00 2001 From: bjculkin Date: Mon, 12 Feb 2018 22:45:04 -0500 Subject: Formatting pass --- base/src/main/java/bjc/utils/esodata/QueueStack.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'base/src/main/java/bjc/utils/esodata/QueueStack.java') diff --git a/base/src/main/java/bjc/utils/esodata/QueueStack.java b/base/src/main/java/bjc/utils/esodata/QueueStack.java index be393a3..c0cbc7d 100644 --- a/base/src/main/java/bjc/utils/esodata/QueueStack.java +++ b/base/src/main/java/bjc/utils/esodata/QueueStack.java @@ -9,7 +9,7 @@ import java.util.LinkedList; * Basically, a stack that actually acts like a queue. * * @param - * The datatype stored in the stack. + * The datatype stored in the stack. * * @author Ben Culkin */ @@ -29,14 +29,14 @@ public class QueueStack extends Stack { @Override public T pop() { - if (backing.isEmpty()) throw new StackUnderflowException(); + if(backing.isEmpty()) throw new StackUnderflowException(); return backing.remove(); } @Override public T top() { - if (backing.isEmpty()) throw new StackUnderflowException(); + if(backing.isEmpty()) throw new StackUnderflowException(); return backing.peek(); } @@ -74,15 +74,15 @@ public class QueueStack extends Stack { @Override public boolean equals(final Object obj) { - if (this == obj) return true; - if (obj == null) return false; - if (!(obj instanceof QueueStack)) return false; + if(this == obj) return true; + if(obj == null) return false; + if(!(obj instanceof QueueStack)) return false; final QueueStack other = (QueueStack) obj; - if (backing == null) { - if (other.backing != null) return false; - } else if (!backing.equals(other.backing)) return false; + if(backing == null) { + if(other.backing != null) return false; + } else if(!backing.equals(other.backing)) return false; return true; } -- cgit v1.2.3