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
Constructors Constructor Description ConsecutiveIntervalInfoImpl(TreeSet<IntervalSplitPoint<Interval_,Point_>> splitPointSet, BiFunction<Point_,Point_,Difference_> differenceFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<IntervalBreak<Interval_,Point_,Difference_>>getBreaks()Iterable<IntervalCluster<Interval_,Point_,Difference_>>getIntervalClusters()StringtoString()
-
-
-
Constructor Detail
-
ConsecutiveIntervalInfoImpl
public ConsecutiveIntervalInfoImpl(TreeSet<IntervalSplitPoint<Interval_,Point_>> splitPointSet, BiFunction<Point_,Point_,Difference_> differenceFunction)
-
-
Method Detail
-
getIntervalClusters
public Iterable<IntervalCluster<Interval_,Point_,Difference_>> 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
public Iterable<IntervalBreak<Interval_,Point_,Difference_>> 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
-
-