Interface Supplements<T>

  • Type Parameters:
    T - the type of units

    public interface Supplements<T>
    Provides an interface for getting supplementary units.
    • 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.