From 4f572b2db312ae4368afd031b50ce3c78a12fc8d Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 14 Mar 2017 14:48:30 -0400 Subject: Deprecate ListUtils token splitting for NeoTokenSplitter --- .../main/java/bjc/utils/funcutils/ListUtils.java | 32 ++++------------------ 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java b/BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java index 483b47d..c231767 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java @@ -80,21 +80,11 @@ public class ListUtils { * The affixes to remove * @return The tokens that have been deaffixed * + * @deprecated Replaced by NeoTokenSplitter. */ + @Deprecated public static IList deAffixTokens(IList input, Deque> operators) { - if(input == null) - throw new NullPointerException("Input must not be null"); - else if(operators == null) throw new NullPointerException("Set of operators must not be null"); - - IList returned = input; - - for(IPair op : operators) { - returned = returned.flatMap(token -> { - return op.merge(new TokenDeaffixer(token)); - }); - } - - return returned; + return null; } /** @@ -311,20 +301,10 @@ public class ListUtils { * those operators * @return A list of tokens split on all the operators * + * @deprecated Use NeoTokenSplitter now */ + @Deprecated public static IList splitTokens(IList input, Deque> operators) { - if(input == null) - throw new NullPointerException("Input must not be null"); - else if(operators == null) throw new NullPointerException("Set of operators must not be null"); - - IList returned = input; - - for(IPair op : operators) { - returned = returned.flatMap(token -> { - return op.merge(new TokenSplitter(token)); - }); - } - - return returned; + return null; } } -- cgit v1.2.3