Package org.daisy.dotify.common.splitter
Interface SplitPointCost<T extends SplitPointUnit>
-
- Type Parameters:
T
- the type of split point unit
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SplitPointCost<T extends SplitPointUnit>
Provides a cost function for a split point.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getCost(SplitPointDataSource<T,?> units, int index, int limit)
Returns the cost of breaking after the unit with the specified index.
-
-
-
Method Detail
-
getCost
double getCost(SplitPointDataSource<T,?> units, int index, int limit)
Returns the cost of breaking after the unit with the specified index.- Parameters:
units
- the unitsindex
- the index of the breakpoint unitlimit
- the maximum length to consider- Returns:
- returns the cost
-
-