Package com.solibri.smc.api.model
Interface Quantities
-
public interface Quantities
Provides access to the quantities of aComponent
.- 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
All Methods Static Methods Instance Methods Abstract Methods 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 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
-
-