Package it.unimi.dsi.util
Class LongIntervals
- java.lang.Object
-
- it.unimi.dsi.util.LongIntervals
-
public class LongIntervals extends Object
A class providing static methods and objects that do useful things with intervals.- See Also:
LongInterval
-
-
Field Summary
Fields Modifier and Type Field Description static LongInterval[]EMPTY_ARRAYstatic LongIntervalEMPTY_INTERVALAn empty (singleton) interval.static Comparator<LongInterval>ENDS_AFTERA 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 Comparator<LongInterval>ENDS_BEFOREA 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 Comparator<LongInterval>LENGTH_COMPARATORA comparator between intervals based on their length.static LongIntervalMINUS_INFINITYA singleton located at −∞.static Comparator<LongInterval>STARTS_AFTERA 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 Comparator<LongInterval>STARTS_BEFOREA 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'.
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final LongInterval[] EMPTY_ARRAY
-
EMPTY_INTERVAL
public static final LongInterval EMPTY_INTERVAL
An empty (singleton) interval.
-
MINUS_INFINITY
public static final LongInterval MINUS_INFINITY
A singleton located at −∞.
-
STARTS_AFTER
public static final Comparator<LongInterval> 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
public static final Comparator<LongInterval> 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
public static final Comparator<LongInterval> 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
public static final Comparator<LongInterval> 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
public static final Comparator<LongInterval> LENGTH_COMPARATOR
A comparator between intervals based on their length.
-
-