Package com.solibri.smc.api.model
Interface Quantities
public interface Quantities
Provides access to the quantities of a
Component
.- Since:
- 9.10.2
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Quantities.Type
Specifies the type of the quantity. -
Method Summary
Modifier and Type Method Description Optional<Double>
get(Quantities.Type quantityType)
Returns the value of the quantity of given type.static Quantities
of(Component component)
Returns the available quantities of the given component.
-
Method Details
-
of
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
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
-