meteo-core/src/main/java/no/api/meteo/service/locationforecast/extras/WindSymbolHelper.java
public static Optional<String> createWindSymbolName(PointForecast pointForecast) {
        if (pointForecast == null || pointForecast.getWindDirection() == null || pointForecast.getWindSpeed() == null) {
            return Optional.empty();
        }
        return Optional.of(
                pointForecast.getWindDirection().getName().toLowerCase()
                        + idFormat.format(pointForecast.getWindSpeed().getBeaufort()));
    }
public static Optional<String> createWindSymbolName(PointForecast pointForecast) {
        if (pointForecast == null || pointForecast.getWindDirection() == null || pointForecast.getWindSpeed() == null) {
            return Optional.empty();
        }
        return Optional.of(
                pointForecast.getWindDirection().getName().toLowerCase()
                        + idFormat.format(pointForecast.getWindSpeed().getBeaufort()));
    }
public static Optional < String > createWindSymbolName ( PointForecast pointForecast ) { if ( pointForecast == null || pointForecast . getWindDirection ( ) == null || pointForecast . getWindSpeed ( ) == null ) { return Optional . empty ( ) ; } return Optional . of ( pointForecast . getWindDirection ( ) . getName ( ) . toLowerCase ( ) + idFormat . format ( pointForecast . getWindSpeed ( ) . getBeaufort ( ) ) ) ; }
Create name for a wind symbol.

This will be created as a mix of the Beaufort wind speed id and the wind direction. This name can be used to
identify what wind icon that should be used for a forecast.

@param pointForecast
The point forecast to create a wind symbol name for.

@return A wind symbol name. <code>null</code> if wind information was missing from the given point forecast.
Create name for a wind symbol .