Package beagleutil
Interface IntInterval
-
- All Known Implementing Classes:
ChromInterval
public interface IntInterval
Interface
Instances of classIntInterval
represents an interval of consecutive integers.IntInterval
are immutable.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.util.Comparator<IntInterval>
decEndComp()
Returns aComparator<IntInterval>
which ordersIntInterval
objects in order of increasingthis.start()
value and ordersIntInterval
objects with the samethis.start()
value in order of decreasingthis.end()
value.int
end()
Returns the end of the interval (inclusive).static java.util.Comparator<IntInterval>
incEndComp()
Returns aComparator<IntInterval>
which ordersIntInterval
objects in order of increasingthis.start()
value and ordersIntInterval
objects with the samethis.start()
value in order of increasingthis.end()
value.int
start()
Returns the start of the interval (inclusive).
-
-
-
Method Detail
-
start
int start()
Returns the start of the interval (inclusive).- Returns:
- the start of the interval (inclusive).
-
end
int end()
Returns the end of the interval (inclusive).- Returns:
- the end of the interval (inclusive).
-
incEndComp
static java.util.Comparator<IntInterval> incEndComp()
Returns aComparator<IntInterval>
which ordersIntInterval
objects in order of increasingthis.start()
value and ordersIntInterval
objects with the samethis.start()
value in order of increasingthis.end()
value.- Returns:
- a
Comparator<IntInterval>
object
-
decEndComp
static java.util.Comparator<IntInterval> decEndComp()
Returns aComparator<IntInterval>
which ordersIntInterval
objects in order of increasingthis.start()
value and ordersIntInterval
objects with the samethis.start()
value in order of decreasingthis.end()
value.- Returns:
- a
Comparator<IntInterval>
object
-
-