Package org.daisy.dotify.common.splitter
Interface Supplements<T>
-
- Type Parameters:
T- the type of units
public interface Supplements<T>Provides an interface for getting supplementary units.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Tget(String id)Gets the unit for the specified Id.default doublegetOverhead()Gets the overhead associated with adding at least one supplement to the result.
-
-
-
Method Detail
-
get
T get(String id)
Gets the unit for the specified Id.- Parameters:
id- the identifier for the unit- Returns:
- returns the unit, if it exists, null otherwise
-
getOverhead
default double getOverhead()
Gets the overhead associated with adding at least one supplement to the result.- Returns:
- returns the overhead associated with adding at least one supplement.
-
-