code: public boolean contains(LocalDate date) {
          Objects.requireNonNull(date, "date");
          return start.compareTo(date) <= 0 && (date.compareTo(end) < 0 || isUnboundedEnd());
      }
docs: Checks if this range contains the specified date.
  <p>
  This checks if the specified date is within the bounds of this range.
  If this range is empty then this method always returns false.
  Else if this range has an unbounded start then {@code contains(LocalDate#MIN)} returns true.
  Else if this range has an unbounded end then {@code contains(LocalDate#MAX)} returns true.
  
  @param date  the date to check for, not null
  @return true if this range contains the date