@Test public void builder_columns() { ParameterTable table = new BasicParameterTable.BasicBuilder() .next() .put("a", "A") .put("b", "B") .put("c", "C") .build(); List<ParameterSet> rows = table.getRows(); Map<String, String> map = rows.get(0).toMap(); assertThat(map.keySet(), containsInAnyOrder("a", "b", "c")); assertThat(map, hasEntry("a", "A")); assertThat(map, hasEntry("b", "B")); assertThat(map, hasEntry("c", "C")); }
@Override public List<ParameterSet> getRows() { List<ParameterSet> results = new ArrayList<>(); for (ParameterSet element : this) { results.add(element); } return results; }
BasicParameterTable implements ParameterTable { @Override public List<ParameterSet> getRows() { List<ParameterSet> results = new ArrayList<>(); for (ParameterSet element : this) { results.add(element); } return results; } }
BasicParameterTable implements ParameterTable { @Override public List<ParameterSet> getRows() { List<ParameterSet> results = new ArrayList<>(); for (ParameterSet element : this) { results.add(element); } return results; } BasicParameterTable(List<? extends Map<String, String>> entity); }
BasicParameterTable implements ParameterTable { @Override public List<ParameterSet> getRows() { List<ParameterSet> results = new ArrayList<>(); for (ParameterSet element : this) { results.add(element); } return results; } BasicParameterTable(List<? extends Map<String, String>> entity); @Override Iterator<ParameterSet> iterator(); @Override boolean isEmpty(); @Override int getRowCount(); @Override Cursor newCursor(); @Override Set<String> getAvailable(); @Override Set<String> getPartial(); @Override List<ParameterSet> getRows(); }
BasicParameterTable implements ParameterTable { @Override public List<ParameterSet> getRows() { List<ParameterSet> results = new ArrayList<>(); for (ParameterSet element : this) { results.add(element); } return results; } BasicParameterTable(List<? extends Map<String, String>> entity); @Override Iterator<ParameterSet> iterator(); @Override boolean isEmpty(); @Override int getRowCount(); @Override Cursor newCursor(); @Override Set<String> getAvailable(); @Override Set<String> getPartial(); @Override List<ParameterSet> getRows();  }