public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static int |
getIndex(java.lang.String[] strings,
java.lang.String string)
Get the position (index) of a particular string in a Strings array.
|
static int |
search(java.util.ArrayList<java.lang.String> src,
java.util.ArrayList<java.lang.String> pattern,
int start)
Searches an ArrayList of Strings starting from a specific position for a
pattern
|
static java.lang.String[] |
toStringArray(java.util.HashMap<java.lang.String,java.lang.Integer> syms)
Convert a HashMap to string array
|
public static int search(java.util.ArrayList<java.lang.String> src, java.util.ArrayList<java.lang.String> pattern, int start)
src
- the input ArrayList of Stringspattern
- the pattern to search forstart
- the starting positionpublic static int getIndex(java.lang.String[] strings, java.lang.String string)
strings
- the Strings arraystring
- the string to searchpublic static java.lang.String[] toStringArray(java.util.HashMap<java.lang.String,java.lang.Integer> syms)
syms
- the input HashMap