class NaivePointForecaster implements PointForecaster {

    @Override
    public PointForecast forecast(MetricData metricData) {
        notNull(metricData, "metricData can't be null");
        val forecastMetricData = lastMetricData;
        this.lastMetricData = metricData;
        return forecastMetricData == null ? null : new PointForecast(forecastMetricData.getValue(), false);
    }

}