Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8146218

Add LocalDate.datesUntil method producing Stream<LocalDate>

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • b105

      The following methods could be added to java.time.LocalDate:

      // Return the Stream of all dates starting from this (inclusive) until the supplied one (exclusive)
      Stream<LocalDate> datesUntil(LocalDate endExclusive);

      // Return the Stream of dates starting from this (inclusive) until the supplied one (exclusive) with given step.
      Stream<LocalDate> datesUntil(LocalDate endExclusive, Period step);

      The proposal is discussed here:
      http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-December/037844.html

            tvaleev Tagir Valeev
            tvaleev Tagir Valeev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: