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/Tape.java | 39 ++++++++++---------------- 1 file changed, 15 insertions(+), 24 deletions(-) (limited to 'base/src/main/java/bjc/utils/esodata/Tape.java') diff --git a/base/src/main/java/bjc/utils/esodata/Tape.java b/base/src/main/java/bjc/utils/esodata/Tape.java index dab027f..91a404a 100644 --- a/base/src/main/java/bjc/utils/esodata/Tape.java +++ b/base/src/main/java/bjc/utils/esodata/Tape.java @@ -8,7 +8,7 @@ package bjc.utils.esodata; * unbounded to the right, but in practice bounded by available memory. * * @param - * The element type of the tape. + * The element type of the tape. * * @author bjculkin */ @@ -16,8 +16,7 @@ public interface Tape { /** * Get the item the tape is currently on. * - * @return - * The item the tape is on. + * @return The item the tape is on. */ T item(); @@ -25,23 +24,21 @@ public interface Tape { * Set the item the tape is currently on. * * @param itm - * The new value for the tape item. + * The new value for the tape item. */ void item(T itm); /** * Get the current number of elements in the tape. * - * @return - * The current number of elements in the tape. + * @return The current number of elements in the tape. */ int size(); /** * Get the position of the current item. * - * @return - * The position of the current item. + * @return The position of the current item. */ int position(); @@ -49,7 +46,7 @@ public interface Tape { * Insert an element before the current item. * * @param itm - * The item to add. + * The item to add. */ void insertBefore(T itm); @@ -57,7 +54,7 @@ public interface Tape { * Insert an element after the current item. * * @param itm - * The item to insert. + * The item to insert. */ void insertAfter(T itm); @@ -67,8 +64,7 @@ public interface Tape { * Also moves the cursor back one step if possible to maintain relative * position. * - * @return - * The removed item. + * @return The removed item. */ T remove(); @@ -83,8 +79,7 @@ public interface Tape { * * The cursor can't go past zero. * - * @return - * True if the cursor was moved left. + * @return True if the cursor was moved left. */ boolean left(); @@ -95,18 +90,16 @@ public interface Tape { * that would exceed zero don't move the cursor at all. * * @param amt - * The amount to attempt to move the cursor left. + * The amount to attempt to move the cursor left. * - * @return - * True if the cursor was moved left. + * @return True if the cursor was moved left. */ boolean left(int amt); /** * Move the cursor one space right. * - * @return - * Whether the cursor was moved right. + * @return Whether the cursor was moved right. */ boolean right(); @@ -114,18 +107,16 @@ public interface Tape { * Move the cursor the specified amount right. * * @param amt - * The amount to move the cursor right by. + * The amount to move the cursor right by. * - * @return - * Whether the cursor was moved right. + * @return Whether the cursor was moved right. */ boolean right(int amt); /** * Is this tape double sided? * - * @return - * Whether or not this tape is double-sided. + * @return Whether or not this tape is double-sided. */ boolean isDoubleSided(); } -- cgit v1.2.3