List of utility methods to do List IndexOf
int | indexOfThatStartsWith(List Finds the first string that starts with the given string. for (int i = startIndex; i < list.size(); i++) { String curStr = list.get(i); if (curStr != null && curStr.startsWith(startsWith)) { return i; return -1; |
int | indexOfType(List> list, Class type) index Of Type for (int idx = 0; idx < list.size(); idx++) { if (type.isInstance(list.get(idx))) { return idx; return -1; |