Package | Description |
---|---|
org.salespointframework.catalog | |
org.salespointframework.quantity |
Domain types to work with quantities.
|
Constructor and Description |
---|
Product(String name,
org.joda.money.Money price,
Metric metric)
|
Modifier and Type | Field and Description |
---|---|
static Metric |
Units.METRIC
Convenience instance, which can be used for countable objects.
|
Modifier and Type | Method and Description |
---|---|
Metric |
Quantity.getMetric()
Returns the
metric associated with this Quantity . |
Constructor and Description |
---|
MetricMismatchException(Metric m1,
Metric m2) |
MetricMismatchException(String text,
Metric m1,
Metric m2) |
Quantity(BigDecimal amount,
Metric metric,
RoundingStrategy roundingStrategy)
Parameterized class constructor.
|
Quantity(double amount,
Metric metric,
RoundingStrategy roundingStrategy)
Translates a
double to a Quantity . |
Quantity(float amount,
Metric metric,
RoundingStrategy roundingStrategy)
Translates a
float to a Quantity . |
Quantity(int amount,
Metric metric,
RoundingStrategy roundingStrategy)
Translates an
int to a Quantity . |
Quantity(long amount,
Metric metric,
RoundingStrategy roundingStrategy)
Translates a
long to a Quantity . |
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.