@Test public void row_count() { ParameterTable r0 = new BasicParameterTable.BasicBuilder() .build(); ParameterTable r1 = new BasicParameterTable.BasicBuilder() .next().put("a", "A") .build(); ParameterTable r3 = new BasicParameterTable.BasicBuilder() .next().put("a", "A") .next().put("b", "B") .next().put("c", "C") .build(); assertThat(r0.getRowCount(), is(0)); assertThat(r1.getRowCount(), is(1)); assertThat(r3.getRowCount(), is(3)); }
@Override public int getRowCount() { return entity.size(); }
BasicParameterTable implements ParameterTable { @Override public int getRowCount() { return entity.size(); } }
BasicParameterTable implements ParameterTable { @Override public int getRowCount() { return entity.size(); } BasicParameterTable(List<? extends Map<String, String>> entity); }
BasicParameterTable implements ParameterTable { @Override public int getRowCount() { return entity.size(); } 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 int getRowCount() { return entity.size(); } 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();  }