List of utility methods to do String Array Search
int | indexOf(String[] datas, String val) index Of if (val != null) { for (int i = 0; i < datas.length; i++) { if (datas[i].equals(val)) { return i; return -1; ... |
int | indexOf(String[] datas, String val) index Of if (val != null && datas != null) { for (int i = 0; i < datas.length; i++) { if (datas[i] != null && datas[i].equals(val)) { return i; return -1; ... |
boolean | in(String needle, String... haystack) in for (String hay : haystack) { if (hay.equals(needle)) return true; return false; |
boolean | containsOnlyAlphaDigitHyphen( final Collection contains Only Alpha Digit Hyphen if (values == null) { return true; final int upperAlphabetFirst = 0x41; final int upperAlphabetAfterLast = 0x5b; final int lowerAlphabetFirst = 0x61; final int lowerAlphabetAfterLast = 0x7b; final int digitFirst = 0x30; ... |
boolean | containsOnlyWhiteSpaces( final Collection contains Only White Spaces if (values == null) { return true; for (final String str : values) { if (TextUtils.isEmpty(str)) { continue; final int length = str.length(); ... |