List of utility methods to do List Search
int | search(List extends Comparable super T>> collection, T element) search int index = 0; for (Comparable<? super T> el : collection) { int cmp = el.compareTo(element); if (cmp == 0) { return index; index++; return -1; |
boolean | search(String[] searchList, String s) search if (null == s || null == searchList) { return false; for (int i = 0; i < searchList.length; i++) { if (0 == searchList[i].compareTo(s)) { return true; return false; |
boolean | searchReplace(String key, String value, List search Replace return searchReplace(key, value, lines, false);
|