Class IntervalTree<Interval_,Point_ extends Comparable<Point_>,Difference_ extends Comparable<Difference_>>
- java.lang.Object
-
- ai.timefold.solver.examples.common.experimental.impl.IntervalTree<Interval_,Point_,Difference_>
-
public final class IntervalTree<Interval_,Point_ extends Comparable<Point_>,Difference_ extends Comparable<Difference_>> extends Object
-
-
Constructor Summary
Constructors Constructor Description IntervalTree(Function<Interval_,Point_> startMapping, Function<Interval_,Point_> endMapping, BiFunction<Point_,Point_,Difference_> differenceFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Interval<Interval_,Point_> interval)booleancontains(Interval_ o)ConsecutiveIntervalInfoImpl<Interval_,Point_,Difference_>getConsecutiveIntervalData()Interval<Interval_,Point_>getInterval(Interval_ intervalValue)booleanisEmpty()Iterator<Interval_>iterator()booleanremove(Interval<Interval_,Point_> interval)
-
-
-
Constructor Detail
-
IntervalTree
public IntervalTree(Function<Interval_,Point_> startMapping, Function<Interval_,Point_> endMapping, BiFunction<Point_,Point_,Difference_> differenceFunction)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Interval_ o)
-
getConsecutiveIntervalData
public ConsecutiveIntervalInfoImpl<Interval_,Point_,Difference_> getConsecutiveIntervalData()
-
-