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

Add LocalDate.datesUntil method producing Stream<LocalDate>

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: