public void adjustSave() { resultB.setIdexec(resultB.getId()); resultB.setResulttest(resultB.getResulttest()); resultB.setComment(resultB.getComment()); resultB.setIdtest(resultB.getIdtest()); }
public List<Result> autoComplete(String query) { List<Result> suggestions = new ArrayList<Result>(); for (Result c : results) { if (String.valueOf(c.getId()).toLowerCase().startsWith(query.toLowerCase())) { suggestions.add(c); } } return suggestions; }