From 002516bd03b2ea3f731c8139c9a5f716902ab702 Mon Sep 17 00:00:00 2001 From: Ben Culkin Date: Tue, 7 Apr 2020 21:03:53 -0400 Subject: Finish remove utils.data utils.data now lives in the esodata project; not in this one --- base/src/main/java/bjc/utils/data/Toggle.java | 34 --------------------------- 1 file changed, 34 deletions(-) delete mode 100644 base/src/main/java/bjc/utils/data/Toggle.java (limited to 'base/src/main/java/bjc/utils/data/Toggle.java') diff --git a/base/src/main/java/bjc/utils/data/Toggle.java b/base/src/main/java/bjc/utils/data/Toggle.java deleted file mode 100644 index 4e7b7d8..0000000 --- a/base/src/main/java/bjc/utils/data/Toggle.java +++ /dev/null @@ -1,34 +0,0 @@ -package bjc.utils.data; - -/** - * A stateful holder that swaps between two values of the same type. - * - * @author EVE - * - * @param - * The value stored in the toggle. - */ -public interface Toggle { - /** - * Retrieve the currently-aligned value of this toggle, and swap the - * value to the new one. - * - * @return The previously-aligned value. - */ - E get(); - - /** - * Retrieve the currently-aligned value without altering the alignment. - * - * @return The currently-aligned value. - */ - E peek(); - - /** - * Change the alignment of the toggle. - * - * @param isLeft - * Whether the toggle should be left-aligned or not. - */ - void set(boolean isLeft); -} -- cgit v1.2.3