Interface Quantities


  • public interface Quantities
    Provides access to the quantities of a Component.
    Since:
    9.10.2
    • Method Detail

      • of

        static Quantities of​(Component component)
        Returns the available quantities of the given component.
        Parameters:
        component - the component whose available quantities are returned
        Returns:
        the available quantities of the given component
      • get

        Optional<Double> get​(Quantities.Type quantityType)
        Returns the value of the quantity of given type. If the quantity is not present or applicable to the component, then returns empty.
        Parameters:
        quantityType - the type of the quantity
        Returns:
        the value of the quantity of given type
        Since:
        9.10.2