public void setRangeFromDatesInclusive ( IPrimitiveType < Date > theLowerBound , IPrimitiveType < Date > theUpperBound ) { IPrimitiveType < Date > lowerBound = theLowerBound ; IPrimitiveType < Date > upperBound = theUpperBound ; if ( lowerBound != null && lowerBound . getValue ( ) != null && upperBound != null && upperBound . getValue ( ) != null ) { if ( lowerBound . getValue ( ) . after ( upperBound . getValue ( ) ) ) { IPrimitiveType < Date > temp = lowerBound ; lowerBound = upperBound ; upperBound = temp ; } } validateAndSet ( lowerBound != null ? new DateParam ( GREATERTHAN_OR_EQUALS , lowerBound ) : null , upperBound != null ? new DateParam ( LESSTHAN_OR_EQUALS , upperBound ) : null ) ; }
Sets the range from a pair of dates inclusive on both ends . Note that if theLowerBound is after theUpperBound thie method will automatically reverse the order of the arguments in order to create an inclusive range .