Uses of Class
org.salespointframework.quantity.Metric
-
Packages that use Metric Package Description org.salespointframework.catalog org.salespointframework.quantity Domain types to work with quantities. -
-
Uses of Metric in org.salespointframework.catalog
Constructors in org.salespointframework.catalog with parameters of type Metric Constructor Description Product(String name, javax.money.MonetaryAmount price, Metric metric)
-
Uses of Metric in org.salespointframework.quantity
Methods in org.salespointframework.quantity that return Metric Modifier and Type Method Description static Metric
Metric. from(String abbreviation)
Returns theMetric
for the given abbreviation.@NonNull Metric
Quantity. getMetric()
The metric of the Quantity.static Metric
Metric. 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 boolean
Metric. isCompatibleWith(Metric metric)
Returns whether the givenMetric
isboolean
Quantity. isCompatibleWith(Metric metric)
static Quantity
Quantity. of(double amount, Metric metric)
static Quantity
Quantity. 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)
-