Alias for intersect
.
Returns the the result of the intervals in this set intersected with the given interval.
Returns the subset of intervals which intersect with the given interval.
Tests if the provided interval intersects with any of the intervals in this set.
(Changed in version 2.8.0) Set.map now returns a Set, so it will discard duplicate values.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Returns the subset of intervals which union with the given interval.
A set containing 0 or more intervals. Intervals which may be unioned together are automatically coalesced, so at all times an interval set contains the minimum number of necessary intervals. Interval sets are immutable and persistent.