final ImmutableList.Builder<TimeValue> timeValues = ImmutableList.builder();
return new Builder() {
@Override
public Builder addData(long timestamp, int value) {
return addData(new TimeValue(timestamp, value));
}
@Override
public Builder addData(TimeValue timeValue) {
timeValues.add(timeValue);