Package beagleutil

Interface IntInterval

All Known Implementing Classes:
ChromInterval, SampleSeg

public interface IntInterval

Interface IntInterval represents an interval of consecutive integers.

Instances of class IntInterval are immutable.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a Comparator<IntInterval> which orders IntInterval objects in order of increasing this.start() value and orders IntInterval objects with the same this.start() value in order of decreasing this.inclEnd() value.
    Returns a Comparator<IntInterval> which orders IntInterval objects in order of increasing this.start() value and orders IntInterval objects with the same this.start() value in order of increasing this.inclEnd() value.
    int
    Returns the end of the interval (inclusive).
    int
    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

      static Comparator<IntInterval> incEndComp()
      Returns a Comparator<IntInterval> which orders IntInterval objects in order of increasing this.start() value and orders IntInterval objects with the same this.start() value in order of increasing this.inclEnd() value.
      Returns:
      a Comparator<IntInterval> object
    • decEndComp

      static Comparator<IntInterval> decEndComp()
      Returns a Comparator<IntInterval> which orders IntInterval objects in order of increasing this.start() value and orders IntInterval objects with the same this.start() value in order of decreasing this.inclEnd() value.
      Returns:
      a Comparator<IntInterval> object