Skip to content

Releases: Whathecode/kotlinx.interval

1.0.0-alpha.5

21 Apr 18:29
98b4a18
Compare
Choose a tag to compare
1.0.0-alpha.5 Pre-release
Pre-release

Additions to Interval:

  • minus and plus operations.
  • lowerBound, upperBound, isLowerBoundIncluded, and isUpperBoundIncluded accessors, preventing you from having to repeatedly check isReversed.
  • Interval now implements IntervalUnion, as a union with a single interval.

Additions to IntervalUnion:

  • isEmpty
  • getBounds to get upper and lower bounds of the set.

Dependency updates:

  • Kotlin 1.9.23
  • kotlinx-datetime 0.5.0

1.0.0-alpha.4

09 Oct 18:41
43c2b3d
Compare
Choose a tag to compare
1.0.0-alpha.4 Pre-release
Pre-release
  • Added an initial contract definition for IntervalUnion (a collection of intervals) and preliminary concrete MutableIntervalUnion which lives up to the contract by restricting which intervals can be added.
  • Added Interval.reverse and nonReversed.
  • Added Interval.intersects to check whether one interval intersects with another.

1.0.0-alpha.3

02 Aug 10:56
59c50b2
Compare
Choose a tag to compare
1.0.0-alpha.3 Pre-release
Pre-release

Introduced date/time intervals as InstantInterval using the kotlinx datetime library, published as a separate artifact under the same namespace: kotlinx-interval-datetime.

1.0.0-alpha.2

24 May 22:06
52f99d9
Compare
Choose a tag to compare
1.0.0-alpha.2 Pre-release
Pre-release
  • Added Interval.contains (in) operator to check whether values lie in an interval.
  • Added interval constructor functions so that all interval types can be constructed using the same keyword.

1.0.0-alpha.1

22 May 22:17
8c7139d
Compare
Choose a tag to compare
1.0.0-alpha.1 Pre-release
Pre-release

A first functional, but still unstable, release.

The base type representing open/closed intervals with generic T and TSize has been introduced. The only operations at the moment is a size property. Default intervals are included for all basic Kotlin types, e.g. IntInterval, DoubleInterval, etc.