public MeteoExtrasLongTermForecast createLongTermForecast ( ) { List < MeteoExtrasForecastDay > forecastDays = new ArrayList <> ( ) ; ZonedDateTime dt = toZeroHMSN ( getLocationForecast ( ) . getCreated ( ) . plusDays ( 1 ) ) ; for ( int i = 0 ; i < series . getSeries ( ) . size ( ) ; i ++ ) { createLongTermForecastDay ( dt . plusDays ( i ) , series . getSeries ( ) . get ( i ) ) . ifPresent ( forecastDays :: add ) ; } return new MeteoExtrasLongTermForecast ( forecastDays ) ; }
Create a longterm forecast .