List of utility methods to do List Search
boolean | strIsInList(String srcStr, List str Is In List if (orgList == null) return true; for (String strList : orgList) if (strList.equals(srcStr)) return false; return true; |
Double | getMax(List get Max Double max = Double.MIN_VALUE; for (int i = 0; i < ids_int.size(); i++) { if (ids_int.get(i) > max) { max = ids_int.get(i); return max; |
boolean | isIntListContinous(List is Int List Continous if (list.isEmpty()) return true; int curr = list.get(0); for (int i = 0; i < list.size(); i++) { if (list.get(i) != curr) return false; curr++; return true; |