Description
The TimeSeries class defines the tuple of data with a separate list. We do this as we have extra data that may or may not be required for a given usage such as data entry data, associated text.
Should we create a builder where you manually add column names, index, and type, and and functions in the row builder to set such?
something like
withColumn(int index, String name, String description, Class<T> type) {
"logic"
}
... Record:
<T> setColumn(int index, T value, Class<T> type) {
"logic"
}
Or something like that, it would prevent the need in TimeSeriesDaoImpl have two different loops doing almost 90% the same work. just a check for "I have this column requested, let's also add it."
Basically instead of hard coding the columns at all (okay, maybe time... is a time series) , the user of the given TimeSeries object (after set by builder) can define them at run-time.
Originally posted by @MikeNeilson in #927 (comment)