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