Interface IntervalBreak<Interval_,Point_ extends Comparable<Point_>,Difference_ extends Comparable<Difference_>>
-
- Type Parameters:
Interval_- The type of value in the sequenceDifference_- The type of difference between values in the sequence
public interface IntervalBreak<Interval_,Point_ extends Comparable<Point_>,Difference_ extends Comparable<Difference_>>An IntervalBreak is a gap between two consecutive interval clusters. For instance, the list [(1,3),(2,4),(3,5),(7,8)] has a break of length 2 between 5 and 7.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Difference_getLength()Return the length of the break, which is the difference betweengetNextIntervalClusterStart()andgetPreviousIntervalClusterEnd().IntervalCluster<Interval_,Point_,Difference_>getNextIntervalCluster()default Point_getNextIntervalClusterStart()Return the start of the sequence after this break.IntervalCluster<Interval_,Point_,Difference_>getPreviousIntervalCluster()default Point_getPreviousIntervalClusterEnd()Return the end of the sequence before this break.
-
-
-
Method Detail
-
getPreviousIntervalCluster
IntervalCluster<Interval_,Point_,Difference_> getPreviousIntervalCluster()
- Returns:
- never null, the interval cluster leading directly into this
-
getNextIntervalCluster
IntervalCluster<Interval_,Point_,Difference_> getNextIntervalCluster()
- Returns:
- never null, the interval cluster immediately following this
-
getPreviousIntervalClusterEnd
default Point_ getPreviousIntervalClusterEnd()
Return the end of the sequence before this break. For the break between 6 and 10, this will return 6.- Returns:
- never null, the item this break is directly after
-
getNextIntervalClusterStart
default Point_ getNextIntervalClusterStart()
Return the start of the sequence after this break. For the break between 6 and 10, this will return 10.- Returns:
- never null, the item this break is directly before
-
getLength
Difference_ getLength()
Return the length of the break, which is the difference betweengetNextIntervalClusterStart()andgetPreviousIntervalClusterEnd(). For the break between 6 and 10, this will return 4.- Returns:
- never null, the length of this break
-
-