void (T elt) { super.addToFiltered(elt); if (myNamer != null) { String name = myNamer.fun(elt); if (name != null) { String filterString = StringUtil.toUpperCase(myPattern.compute()); String candidateString = StringUtil.toUpperCase(name); int index = getSize() - 1; if (myFullMatchIndex == -1 && filterString.equals(candidateString)) { myFullMatchIndex = index; } if (myStartsWithIndex == -1 && candidateString.startsWith(filterString)) { myStartsWithIndex = index; } } } }