Releases: Whathecode/kotlinx.interval
Releases · Whathecode/kotlinx.interval
1.0.0-alpha.5
Additions to Interval
:
minus
andplus
operations.lowerBound
,upperBound
,isLowerBoundIncluded
, andisUpperBoundIncluded
accessors, preventing you from having to repeatedly checkisReversed
.Interval
now implementsIntervalUnion
, 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
- Added an initial contract definition for
IntervalUnion
(a collection of intervals) and preliminary concreteMutableIntervalUnion
which lives up to the contract by restricting which intervals can be added. - Added
Interval.reverse
andnonReversed
. - Added
Interval.intersects
to check whether one interval intersects with another.
1.0.0-alpha.3
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
- 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
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.