package org.mitre.synthea.helpers;

import java.util.ArrayList;
import java.util.Collection;

public class TimeSeriesData {
  /** Provides a collection of time series values as well as sampling metadata
   *  concerning those values.
   */
  private Collection<Double> values;
  private double period; // number of seconds between samples
  
  public TimeSeriesData(double period) {
    this.setValues(new ArrayList<Double>());
    this.setPeriod(period);
  }
  
  public TimeSeriesData(Collection<Double> values, double period) {
    this.setValues(values);
    this.setPeriod(period);
  }
  
  public TimeSeriesData(int initialCapacity, double period) {
    this.setValues(new ArrayList<Double>(initialCapacity));
    this.setPeriod(period);
  }
  
  public Collection<Double> getValues() {
    return values;
  }

  public void setValues(Collection<Double> values) {
    this.values = values;
  }
  
  public double getPeriod() {
    return period;
  }
  
  public void setPeriod(double period) {
    this.period = period;
  }
  
  public boolean addValue(double value) {
    return this.values.add(value);
  }

}

@@ -85,16 +85,39 @@
 lection;
+%0Aimport java.util.List;
 %0A%0Apublic
@@ -266,26 +266,20 @@
 private 
-Collection
+List
 %3CDouble%3E
@@ -497,26 +497,20 @@
 iesData(
-Collection
+List
 %3CDouble%3E
@@ -764,26 +764,20 @@
  public 
-Collection
+List
 %3CDouble%3E
@@ -839,26 +839,20 @@
 tValues(
-Collection
+List
 %3CDouble%3E

use List instead of Collection