Uses of Class
org.salespointframework.quantity.Metric
| Package | Description |
|---|---|
| org.salespointframework.catalog | |
| org.salespointframework.quantity |
Domain types to work with quantities.
|
-
Uses of Metric in org.salespointframework.catalog
-
Uses of Metric in org.salespointframework.quantity
Methods in org.salespointframework.quantity that return Metric Modifier and Type Method Description static MetricMetric. from(String abbreviation)Returns theMetricfor the given abbreviation.@NonNull MetricQuantity. getMetric()The metric of the Quantity.static MetricMetric. valueOf(String name)Returns the enum constant of this type with the specified name.static Metric[]Metric. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.salespointframework.quantity with parameters of type Metric Modifier and Type Method Description booleanMetric. isCompatibleWith(Metric metric)Returns whether the givenMetricisbooleanQuantity. isCompatibleWith(Metric metric)static QuantityQuantity. of(double amount, Metric metric)static QuantityQuantity. of(long amount, Metric metric)Constructors in org.salespointframework.quantity with parameters of type Metric Constructor Description MetricMismatchException(String text, Metric m1, Metric m2)MetricMismatchException(Metric m1, Metric m2)