public void setMinimumDuration ( @ NotNull final Duration minimumDuration ) { if ( minimumDuration . compareTo ( MAXIMUM_DURATION ) > 0 ) { throw new IllegalArgumentException ( "The minimum duaration has to be smaller than 23:59:59." ) ; } this . minimumDuration = durationToDate ( minimumDuration ) ; }
Sets the minimal allowed duration value as a String