de.unihd.dbs.uima.annotator.heideltime.utilities
public class Toolbox extends java.lang.Object
Constructor and Description |
---|
Toolbox() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Iterable<java.util.regex.MatchResult> |
findMatches(java.util.regex.Pattern pattern,
java.lang.CharSequence s)
Find all the matches of a pattern in a charSequence and return the
results as list.
|
static java.util.List<java.util.regex.Pattern> |
sortByValue(java.util.HashMap<java.util.regex.Pattern,java.lang.String> m)
Sorts a given HashMap using a custom function
|
public static java.lang.Iterable<java.util.regex.MatchResult> findMatches(java.util.regex.Pattern pattern, java.lang.CharSequence s)
pattern
- Pattern to be matcheds
- String to be matched againstpublic static java.util.List<java.util.regex.Pattern> sortByValue(java.util.HashMap<java.util.regex.Pattern,java.lang.String> m)
m
- Map of items to sort