void (String[] args) { Set<String> strings = new HashSet<>(); new Test().query(new Res<caret>ultSetExtractor() { @Override public Object extractData(ResultSet var1) { return strings.add("Col1"); } }); }