@Test public void builder_rows() { ParameterTable table = IterativeExtensions.builder() .next().put("a", "A") .next().put("b", "B") .next().put("c", "C") .build(); assertThat(table.getRowCount(), is(3)); List<ParameterSet> rows = table.getRows(); Map<String, String> m0 = rows.get(0).toMap(); assertThat(m0.keySet(), containsInAnyOrder("a")); assertThat(m0, hasEntry("a", "A")); Map<String, String> m1 = rows.get(1).toMap(); assertThat(m1.keySet(), containsInAnyOrder("b")); assertThat(m1, hasEntry("b", "B")); Map<String, String> m2 = rows.get(2).toMap(); assertThat(m2.keySet(), containsInAnyOrder("c")); assertThat(m2, hasEntry("c", "C")); }
public static ParameterTable.Builder builder() { return new BasicParameterTable.BasicBuilder(); }
IterativeExtensions { public static ParameterTable.Builder builder() { return new BasicParameterTable.BasicBuilder(); } }
IterativeExtensions { public static ParameterTable.Builder builder() { return new BasicParameterTable.BasicBuilder(); } private  IterativeExtensions(); }
IterativeExtensions { public static ParameterTable.Builder builder() { return new BasicParameterTable.BasicBuilder(); } private  IterativeExtensions(); static ParameterTable.Builder builder(); static ParameterTable load(InputStream input); static void save(OutputStream output, ParameterTable table); }
IterativeExtensions { public static ParameterTable.Builder builder() { return new BasicParameterTable.BasicBuilder(); } private  IterativeExtensions(); static ParameterTable.Builder builder(); static ParameterTable load(InputStream input); static void save(OutputStream output, ParameterTable table); static final String EXTENSION_NAME; }