public boolean checkDateValidity(long someTime){
  if (notBefore == null) {
    if (notOnOrAfter == null) {
      return true;
    }
 else {
      if (someTime < notOnOrAfter.getTime()) {
        return true;
      }
    }
  }
 else   if (notOnOrAfter == null) {
    if (someTime >= notBefore.getTime()) {
      return true;
    }
  }
 else   if ((someTime >= notBefore.getTime()) && (someTime < notOnOrAfter.getTime())) {
    return true;
  }
  return false;
}

public boolean checkDateValidity ( long someTime ) { if ( notBefore == null ) { if ( notOnOrAfter == null ) { return true ; } else { if ( someTime < notOnOrAfter . getTime ( ) ) { return true ; } } } else if ( notOnOrAfter == null ) { if ( someTime >= notBefore . getTime ( ) ) { return true ; } } else if ( ( someTime >= notBefore . getTime ( ) ) && ( someTime < notOnOrAfter . getTime ( ) ) ) { return true ; } return false ; }
return true if a specific date falls within the validity interval of this set of conditions .
