Package beagleutil
Interface IntInterval
- All Known Implementing Classes:
ChromInterval,SampleSeg
public interface IntInterval
Interface IntInterval represents an interval of
consecutive integers.
IntInterval are immutable.-
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<IntInterval> Returns aComparator<IntInterval>which ordersIntIntervalobjects in order of increasingthis.start()value and ordersIntIntervalobjects with the samethis.start()value in order of decreasingthis.inclEnd()value.static Comparator<IntInterval> Returns aComparator<IntInterval>which ordersIntIntervalobjects in order of increasingthis.start()value and ordersIntIntervalobjects with the samethis.start()value in order of increasingthis.inclEnd()value.intinclEnd()Returns the end of the interval (inclusive).intstart()Returns the start of the interval (inclusive).
-
Method Details
-
start
int start()Returns the start of the interval (inclusive).- Returns:
- the start of the interval (inclusive).
-
inclEnd
int inclEnd()Returns the end of the interval (inclusive).- Returns:
- the end of the interval (inclusive).
-
incEndComp
Returns aComparator<IntInterval>which ordersIntIntervalobjects in order of increasingthis.start()value and ordersIntIntervalobjects with the samethis.start()value in order of increasingthis.inclEnd()value.- Returns:
- a
Comparator<IntInterval>object
-
decEndComp
Returns aComparator<IntInterval>which ordersIntIntervalobjects in order of increasingthis.start()value and ordersIntIntervalobjects with the samethis.start()value in order of decreasingthis.inclEnd()value.- Returns:
- a
Comparator<IntInterval>object
-