From 61fd71f69e080790da722e0e03b71ecd7c2538a2 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 10 May 2016 16:02:45 -0400 Subject: General update --- .../main/java/bjc/utils/parserutils/ShuntingYard.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/parserutils/ShuntingYard.java') 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 2ea23c6..8118faa 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/parserutils/ShuntingYard.java +++ b/BJC-Utils2/src/main/java/bjc/utils/parserutils/ShuntingYard.java @@ -7,8 +7,8 @@ import java.util.function.Function; import bjc.utils.funcdata.FunctionalList; import bjc.utils.funcdata.FunctionalMap; -import bjc.utils.funcdata.IFunctionalList; -import bjc.utils.funcdata.IFunctionalMap; +import bjc.utils.funcdata.IList; +import bjc.utils.funcdata.IMap; import bjc.utils.funcutils.StringUtils; /** @@ -63,11 +63,11 @@ public class ShuntingYard { } private final class TokenShunter implements Consumer { - private IFunctionalList output; + private IList output; private Deque stack; private Function transform; - public TokenShunter(IFunctionalList outpt, + public TokenShunter(IList outpt, Deque stack, Function transform) { this.output = outpt; @@ -105,7 +105,7 @@ public class ShuntingYard { /** * Holds all the shuntable operations */ - private IFunctionalMap operators; + private IMap operators; /** * Create a new shunting yard with a default set of operators @@ -176,8 +176,8 @@ public class ShuntingYard { * The function to use to transform strings to tokens * @return A list of tokens in postfix notation */ - public IFunctionalList postfix( - IFunctionalList input, + public IList postfix( + IList input, Function tokenTransformer) { if (input == null) { throw new NullPointerException("Input must not be null"); @@ -185,7 +185,7 @@ public class ShuntingYard { throw new NullPointerException("Transformer must not be null"); } - IFunctionalList output = new FunctionalList<>(); + IList output = new FunctionalList<>(); Deque stack = new LinkedList<>(); -- cgit v1.2.3