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

Add LocalDate.datesUntil method producing Stream<LocalDate>

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: