DataSet.Builder

public static class DataSet.Builder extends Object

Builder used to create new data sets.

Public Method Summary

DataSet.Builder
add(DataPoint dataPoint)
Adds a data point to this data set.
DataSet.Builder
addAll(Iterable<DataPoint> dataPoints)
Adds a list of data points to this data set in bulk.
DataSet
build()
Finishes building and returns the DataSet.

Inherited Method Summary

Public Methods

public DataSet.Builder add (DataPoint dataPoint)

Adds a data point to this data set. The data points should be for the correct data type and data source, and should have its timestamp already set.

Throws
IllegalArgumentException If dataPoint has the wrong DataSource, or contain invalid data.

public DataSet.Builder addAll (Iterable<DataPoint> dataPoints)

Adds a list of data points to this data set in bulk. All data points should be for the correct data type and data source, and should have their timestamp already set.

Throws
IllegalArgumentException If the dataPoints have the wrong source, or contain invalid data.

public DataSet build ()

Finishes building and returns the DataSet.

Throws
IllegalStateException If called more than once.