public boolean isValidPeriodForDataEntry(Period period){
  if (period != null) {
    return (startDate == null || startDate.compareTo(period.getStartDate()) <= 0) && (endDate == null || endDate.compareTo(period.getEndDate()) >= 0);
  }
  return true;
}

public boolean isValidPeriodForDataEntry ( Period period ) { if ( period != null ) { return ( startDate == null || startDate . compareTo ( period . getStartDate ( ) ) <= 0 ) && ( endDate == null || endDate . compareTo ( period . getEndDate ( ) ) >= 0 ) ; } return true ; }
indicates if the given period is valid for data entry for this data set . returns true if the given period is null .
