From 36d08163f592c573dfaa69326a4cb42178c7ddd9 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Wed, 30 Mar 2016 09:36:55 -0400 Subject: Moved IPrecedent into the only package that uses it --- .../src/main/java/bjc/utils/data/IPrecedent.java | 28 ---------------------- .../java/bjc/utils/parserutils/IPrecedent.java | 28 ++++++++++++++++++++++ .../java/bjc/utils/parserutils/ShuntingYard.java | 1 - 3 files changed, 28 insertions(+), 29 deletions(-) delete mode 100644 BJC-Utils2/src/main/java/bjc/utils/data/IPrecedent.java create mode 100644 BJC-Utils2/src/main/java/bjc/utils/parserutils/IPrecedent.java (limited to 'BJC-Utils2/src/main/java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/data/IPrecedent.java b/BJC-Utils2/src/main/java/bjc/utils/data/IPrecedent.java deleted file mode 100644 index a9ae0bc..0000000 --- a/BJC-Utils2/src/main/java/bjc/utils/data/IPrecedent.java +++ /dev/null @@ -1,28 +0,0 @@ -package bjc.utils.data; - -/** - * Represents something that has a set precedence - * - * @author ben - * - */ -@FunctionalInterface -public interface IPrecedent { - /** - * Create a new object with set precedence - * - * @param prec - * The precedence of the object to handle - * @return A new object with set precedence - */ - public static IPrecedent newSimplePrecedent(int prec) { - return () -> prec; - } - - /** - * Get the precedence of the attached object - * - * @return The precedence of the attached object - */ - public int getPrecedence(); -} \ No newline at end of file diff --git a/BJC-Utils2/src/main/java/bjc/utils/parserutils/IPrecedent.java b/BJC-Utils2/src/main/java/bjc/utils/parserutils/IPrecedent.java new file mode 100644 index 0000000..95ced43 --- /dev/null +++ b/BJC-Utils2/src/main/java/bjc/utils/parserutils/IPrecedent.java @@ -0,0 +1,28 @@ +package bjc.utils.parserutils; + +/** + * Represents something that has a set precedence + * + * @author ben + * + */ +@FunctionalInterface +public interface IPrecedent { + /** + * Create a new object with set precedence + * + * @param prec + * The precedence of the object to handle + * @return A new object with set precedence + */ + public static IPrecedent newSimplePrecedent(int prec) { + return () -> prec; + } + + /** + * Get the precedence of the attached object + * + * @return The precedence of the attached object + */ + public int getPrecedence(); +} \ No newline at end of file diff --git a/BJC-Utils2/src/main/java/bjc/utils/parserutils/ShuntingYard.java b/BJC-Utils2/src/main/java/bjc/utils/parserutils/ShuntingYard.java index 3ce7da0..3bb6bed 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/parserutils/ShuntingYard.java +++ b/BJC-Utils2/src/main/java/bjc/utils/parserutils/ShuntingYard.java @@ -7,7 +7,6 @@ import java.util.Map; import java.util.function.Consumer; import java.util.function.Function; -import bjc.utils.data.IPrecedent; import bjc.utils.funcdata.FunctionalList; import bjc.utils.funcutils.StringUtils; -- cgit v1.2.3