question: public boolean isWithinRange ( final Duration duration ) { return duration . compareTo ( min ) >= 0 && duration . compareTo ( max ) <= 0 ; }
target:  Checks if the requested duration is in the defined min/max range.