Package it.unimi.dsi.util
Class LongIntervals
java.lang.Object
it.unimi.dsi.util.LongIntervals
A class providing static methods and objects that do useful things with intervals.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LongInterval[]
static final LongInterval
An empty (singleton) interval.static final Comparator<LongInterval>
A comparator between intervals defined as follows: [a..b] is less than [a'..b'] iff the first interval ends after the second one, that is, iff b' < b.static final Comparator<LongInterval>
A comparator between intervals defined as follows: [a..b] is less than [a'..b'] iff the first interval ends before the second one, that is, iff b < b'.static final Comparator<LongInterval>
A comparator between intervals based on their length.static final LongInterval
A singleton located at −∞.static final Comparator<LongInterval>
A comparator between intervals defined as follows: [a..b] is less than [a'..b'] iff the first interval starts after the second one, that is, iff a' < a.static final Comparator<LongInterval>
A comparator between intervals defined as follows: [a..b] is less than [a'..b'] iff the first interval starts before the second one, that is, iff a < a'. -
Method Summary
-
Field Details
-
EMPTY_ARRAY
-
EMPTY_INTERVAL
An empty (singleton) interval. -
MINUS_INFINITY
A singleton located at −∞. -
STARTS_AFTER
A comparator between intervals defined as follows: [a..b] is less than [a'..b'] iff the first interval starts after the second one, that is, iff a' < a. -
STARTS_BEFORE
A comparator between intervals defined as follows: [a..b] is less than [a'..b'] iff the first interval starts before the second one, that is, iff a < a'. -
ENDS_AFTER
A comparator between intervals defined as follows: [a..b] is less than [a'..b'] iff the first interval ends after the second one, that is, iff b' < b. -
ENDS_BEFORE
A comparator between intervals defined as follows: [a..b] is less than [a'..b'] iff the first interval ends before the second one, that is, iff b < b'. -
LENGTH_COMPARATOR
A comparator between intervals based on their length.
-