public DataSetDescriptor withNameAndDescription(String name, String description) { return new DataSetDescriptor(startRow, rowCount, name, description); }
public DataSetDescriptor withRowCount(int rowCount) { return new DataSetDescriptor(startRow, rowCount, name, description); }
public DataSetDescriptor forRange(int startRow, int rowCount) { return new DataSetDescriptor(startRow, rowCount, name, description, tags); }
public DataSetDescriptor withNameAndDescription(String name, String description) { return new DataSetDescriptor(startRow, rowCount, name, description); }
public DataSetDescriptor withRowCount(int rowCount) { return new DataSetDescriptor(startRow, rowCount, name, description); }
public DataSetDescriptor withNameAndDescription(String name, String description) { return new DataSetDescriptor(startRow, rowCount, name, description, tags); }
public DataSetDescriptor withRowCount(int rowCount) { return new DataSetDescriptor(startRow, rowCount, name, description, tags); }
protected DataTable(List<String> headers, List<DataTableRow> rows, String title, String description) { this(headers, new CopyOnWriteArrayList(rows), title, description, ImmutableList.of(new DataSetDescriptor(0,0,title, description))); }
protected DataTable(List<String> headers, List<DataTableRow> rows, String title, String description) { this(headers, new CopyOnWriteArrayList(rows), title, description, ImmutableList.of(new DataSetDescriptor(0,0,title, description))); }
protected DataTable(List<String> headers, List<DataTableRow> rows, String title, String description) { this(null, headers, new CopyOnWriteArrayList<>(rows), title, description, Collections.singletonList(new DataSetDescriptor(0,0,title, description, Collections.emptyList()))); }
public void startNewDataSet(String name, String description) { updateLatestRowCount(); dataSetDescriptors = new ImmutableList.Builder<DataSetDescriptor>() .addAll(dataSetDescriptors) .add(new DataSetDescriptor(rows.size(), 0, name, description)) .build(); }
public void startNewDataSet(String name, String description) { updateLatestRowCount(); dataSetDescriptors = new ImmutableList.Builder<DataSetDescriptor>() .addAll(dataSetDescriptors) .add(new DataSetDescriptor(rows.size(), 0, name, description)) .build(); }
public void startNewDataSet(String name, String description) { updateLatestRowCount(); List<DataSetDescriptor> descriptors = new ArrayList<>(); descriptors.addAll(dataSetDescriptors); descriptors.add(new DataSetDescriptor(rows.size(), 0, name, description, Collections.emptyList())); dataSetDescriptors = descriptors; }
private void setLatestNameAndDescription(String name, String description) { if ((dataSetDescriptors == null) || (dataSetDescriptors.isEmpty())) { dataSetDescriptors = Collections.singletonList(new DataSetDescriptor(0,0,name,description, Collections.emptyList())); } else { dataSetDescriptors = replaceLatestDescriptor(last(dataSetDescriptors).withNameAndDescription(name, description)); } }
public void setLatestNameAndDescription(String name, String description) { if ((dataSetDescriptors == null) || (dataSetDescriptors.isEmpty())) { dataSetDescriptors = ImmutableList.of(new DataSetDescriptor(0,0,name,description)); } else { dataSetDescriptors = replaceLatestDescriptor(last(dataSetDescriptors).withNameAndDescription(name, description)); } }
public void setLatestNameAndDescription(String name, String description) { if ((dataSetDescriptors == null) || (dataSetDescriptors.isEmpty())) { dataSetDescriptors = ImmutableList.of(new DataSetDescriptor(0,0,name,description)); } else { dataSetDescriptors = replaceLatestDescriptor(last(dataSetDescriptors).withNameAndDescription(name, description)); } }
private List<DataSetDescriptor> readDescriptors(final HierarchicalStreamReader reader) { List<DataSetDescriptor> descriptors = new ArrayList<>(); while (reader.hasMoreChildren()) { reader.moveDown(); String childNode = reader.getNodeName(); if (childNode.equals(DATASET)) { int startRow = Integer.parseInt(reader.getAttribute("startRow")); int rowCount = Integer.parseInt(reader.getAttribute("rowCount")); String name = reader.getAttribute("name"); String description = reader.getAttribute("description"); // TODO: Not sure where this is called, it may need to read the example tags as well. descriptors.add(new DataSetDescriptor(startRow,rowCount,name, description, Collections.emptyList())); } reader.moveUp(); } return descriptors; }
private List<DataSetDescriptor> readDescriptors(final HierarchicalStreamReader reader) { List<DataSetDescriptor> descriptors = Lists.newArrayList(); while (reader.hasMoreChildren()) { reader.moveDown(); String childNode = reader.getNodeName(); if (childNode.equals("dataset")) { int startRow = Integer.parseInt(reader.getAttribute("startRow")); int rowCount = Integer.parseInt(reader.getAttribute("rowCount")); String name = reader.getAttribute("name"); String description = reader.getAttribute("description"); descriptors.add(new DataSetDescriptor(startRow,rowCount,name, description)); } reader.moveUp(); } return descriptors; }
private List<DataSetDescriptor> readDescriptors(final HierarchicalStreamReader reader) { List<DataSetDescriptor> descriptors = Lists.newArrayList(); while (reader.hasMoreChildren()) { reader.moveDown(); String childNode = reader.getNodeName(); if (childNode.equals("dataset")) { int startRow = Integer.parseInt(reader.getAttribute("startRow")); int rowCount = Integer.parseInt(reader.getAttribute("rowCount")); String name = reader.getAttribute("name"); String description = reader.getAttribute("description"); descriptors.add(new DataSetDescriptor(startRow,rowCount,name, description)); } reader.moveUp(); } return descriptors; }