Returns a sequential ordered stream of dates by given incremental step. The returned stream
starts from this date (inclusive) and goes to endExclusive (exclusive).
The n-th date which appears in the stream is equal to this.plus(step.multipliedBy(n))
(but the result of step multiplication never overflows). For example, if this date is
2015-01-31, the end date is 2015-05-01 and the step is 1 month, then the
stream contains 2015-01-31, 2015-02-28, 2015-03-31, and
2015-04-30.
endExclusive | the end date, exclusive, not null | |
step | the non-zero, non-negative Period which represents the step. |
Stream for the range of LocalDate values
IllegalArgumentException | if step is zero, or step.getDays() and
step.toTotalMonths() have opposite sign, or end date is before this date
and step is positive, or end date is after this date and step is negative |
Diagram: LocalDate