code: public boolean contains(Date date)
     {
        boolean result = false;
  
        if (date != null)
        {
           result = (DateHelper.compare(getFromDate(), getToDate(), date) == 0);
        }
  
        return (result);
     }
docs: This method determines whether the given date falls in the range of
  dates covered by this exception. Note that this method assumes that both
  the start and end date of this exception have been set.
  
  @param date Date to be tested
  @return Boolean value