All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.daisy.dotify.common.splitter.Supplements Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package org.daisy.dotify.common.splitter;

/**
 * Provides an interface for getting supplementary units.
 *
 * @param  the type of units
 * @author Joel Håkansson
 */
public interface Supplements {

    /**
     * Gets the unit for the specified Id.
     *
     * @param id the identifier for the unit
     * @return returns the unit, if it exists, null otherwise
     */
    public T get(String id);

    /**
     * Gets the overhead associated with adding at least one supplement to the result.
     *
     * @return returns the overhead associated with adding at least one supplement.
     */
    public default double getOverhead() {
        return 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy