public void setTime ( Date minTime , Date maxTime ) throws IllegalArgumentException { if ( minTime != null && maxTime != null && minTime . after ( maxTime ) ) { throw new IllegalArgumentException ( "Value of the minTime parameter should specify time before the time specified by the value of the maxTime parameter" ) ; } this . minTime = minTime ; this . maxTime = maxTime ; }
sets the current value for the minimum and maximum time