class DoubleLastValueAggregator extends AbstractAggregator {

  @Override
  @Nullable
  public Point toPoint(long startEpochNanos, long epochNanos, Labels labels) {
    @Nullable Double currentValue = current.get();
    return currentValue == null
        ? null
        : DoublePoint.create(startEpochNanos, epochNanos, labels, currentValue);
  }

}