@Test(expected = IllegalArgumentException.class) public void testForecast_nullMetricData() { subject.forecast(null); }
@Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val oldValue = this.buffer.updateWhilePadding(metricData); return getPreviousValueOrNull(oldValue); }
SeasonalNaivePointForecaster implements SeasonalPointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val oldValue = this.buffer.updateWhilePadding(metricData); return getPreviousValueOrNull(oldValue); } }
SeasonalNaivePointForecaster implements SeasonalPointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val oldValue = this.buffer.updateWhilePadding(metricData); return getPreviousValueOrNull(oldValue); } SeasonalNaivePointForecaster(SeasonalNaivePointForecasterParams params); }
SeasonalNaivePointForecaster implements SeasonalPointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val oldValue = this.buffer.updateWhilePadding(metricData); return getPreviousValueOrNull(oldValue); } SeasonalNaivePointForecaster(SeasonalNaivePointForecasterParams params); @Override PointForecast forecast(MetricData metricData); @Override int getCycleLength(); @Override int getIntervalLength(); }
SeasonalNaivePointForecaster implements SeasonalPointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val oldValue = this.buffer.updateWhilePadding(metricData); return getPreviousValueOrNull(oldValue); } SeasonalNaivePointForecaster(SeasonalNaivePointForecasterParams params); @Override PointForecast forecast(MetricData metricData); @Override int getCycleLength(); @Override int getIntervalLength();  }