diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-03-14 14:48:30 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-03-14 14:48:30 -0400 |
| commit | 4f572b2db312ae4368afd031b50ce3c78a12fc8d (patch) | |
| tree | 3637f0f7f797a1a25a345faa252f05f31e8848db /BJC-Utils2/src/main | |
| parent | e106e1f36fb04adc14f9c8a30587bf349bdcaf54 (diff) | |
Deprecate ListUtils token splitting for NeoTokenSplitter
Diffstat (limited to 'BJC-Utils2/src/main')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java | 32 |
1 files 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<String> deAffixTokens(IList<String> input, Deque<IPair<String, String>> 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<String> returned = input; - - for(IPair<String, String> 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<String> splitTokens(IList<String> input, Deque<IPair<String, String>> 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<String> returned = input; - - for(IPair<String, String> op : operators) { - returned = returned.flatMap(token -> { - return op.merge(new TokenSplitter(token)); - }); - } - - return returned; + return null; } } |
