Class ConsecutiveSetTree<Value_,​Point_ extends Comparable<Point_>,​Difference_ extends Comparable<Difference_>>

  • Type Parameters:
    Value_ - The type of value stored (examples: shifts)
    Point_ - The type of the point (examples: int, LocalDateTime)
    Difference_ - The type of the difference (examples: int, Duration)

    public class ConsecutiveSetTree<Value_,​Point_ extends Comparable<Point_>,​Difference_ extends Comparable<Difference_>>
    extends Object
    A ConsecutiveSetTree determine what value are consecutive. A sequence x1,x2,x3,...,xn is understood to be consecutive by d iff x2 - x1 <= d, x3 -x2 <= d, ..., xn - x(n-1) <= d. This datastructure can be thought as an interval tree that maps the point p to the interval [p, p + d].