Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
public class SlidingWindows {

    // New@Deprecated
    public static SlidingWindows ofTimeDifferenceWithNoGracewithTimeDifferenceAndGrace(final Duration timeDifference, final Duration afterWindowEnd);

    // Existing:New
 note, this starts withpublic "with"static andSlidingWindows not "of" like the others, we could deprecate it to bring the API in alignment but it seems not worth the disruption to users to change one wordofTimeDifferenceWithNoGrace(final Duration timeDifference);

    // New
    public static SlidingWindows withTimeDifferenceAndGraceofTimeDifferenceAndGrace(final Duration timeDifference, final Duration afterWindowEnd);
}

...