Class ConsecutiveIntervalInfoImpl<Interval_,Point_ extends Comparable<Point_>,Difference_ extends Comparable<Difference_>>
java.lang.Object
ai.timefold.solver.examples.common.experimental.impl.ConsecutiveIntervalInfoImpl<Interval_,Point_,Difference_>
- All Implemented Interfaces:
ConsecutiveIntervalInfo<Interval_,Point_, Difference_>
public final class ConsecutiveIntervalInfoImpl<Interval_,Point_ extends Comparable<Point_>,Difference_ extends Comparable<Difference_>>
extends Object
implements ConsecutiveIntervalInfo<Interval_,Point_,Difference_>
-
Constructor Summary
ConstructorsConstructorDescriptionConsecutiveIntervalInfoImpl(TreeSet<IntervalSplitPoint<Interval_, Point_>> splitPointSet, BiFunction<Point_, Point_, Difference_> differenceFunction) -
Method Summary
-
Constructor Details
-
ConsecutiveIntervalInfoImpl
public ConsecutiveIntervalInfoImpl(TreeSet<IntervalSplitPoint<Interval_, Point_>> splitPointSet, BiFunction<Point_, Point_, Difference_> differenceFunction)
-
-
Method Details
-
getIntervalClusters
- Specified by:
getIntervalClustersin interfaceConsecutiveIntervalInfo<Interval_,Point_ extends Comparable<Point_>, Difference_ extends Comparable<Difference_>> - Returns:
- never null, an iterable that iterates through the interval clusters contained in the collection in ascending order
-
getBreaks
- Specified by:
getBreaksin interfaceConsecutiveIntervalInfo<Interval_,Point_ extends Comparable<Point_>, Difference_ extends Comparable<Difference_>> - Returns:
- never null, an iterable that iterates through the breaks contained in the collection in ascending order
-
toString
-