@ReflectiveAccess
    protected void setInterval(String interval) {
        this.interval = ConversionService.SHARED.convert(interval, Duration.class).orElseThrow(() -> new IllegalArgumentException("Invalid Duration Specified"));
    }
@ ReflectiveAccess protected void setInterval ( String interval ) { this . interval = ConversionService . SHARED . convert ( interval , Duration . class ) . orElseThrow ( ( ) -> new IllegalArgumentException ( "Invalid Duration Specified" ) ) ; }
Sets the interval.

@param interval The interval