Package | Description |
---|---|
org.salespointframework.catalog | |
org.salespointframework.inventory |
The inventory subsystem.
|
org.salespointframework.order |
The order subsystem.
|
org.salespointframework.quantity |
Domain types to work with quantities.
|
org.salespointframework.support |
Infrastrcuture support classes.
|
Modifier and Type | Method and Description |
---|---|
Quantity |
Product.createQuantity(double amount)
|
Quantity |
Product.createQuantity(long amount)
|
Modifier and Type | Method and Description |
---|---|
boolean |
Product.supports(Quantity quantity)
|
void |
Product.verify(Quantity quantity)
|
Modifier and Type | Method and Description |
---|---|
Quantity |
InventoryItem.getQuantity() |
Modifier and Type | Method and Description |
---|---|
void |
InventoryItem.decreaseQuantity(Quantity quantity)
Decreases the quantity of the current
InventoryItem by the given Quantity . |
boolean |
InventoryItem.hasSufficientQuantity(Quantity quantity)
Returns whether the
InventoryItem is available in exactly or more of the given quantity. |
void |
InventoryItem.increaseQuantity(Quantity quantity)
Increases the quantity of the current
InventoryItem by the given Quantity . |
Constructor and Description |
---|
InventoryItem(Product product,
Quantity quantity)
|
Modifier and Type | Method and Description |
---|---|
Quantity |
OrderLine.getQuantity() |
Quantity |
CartItem.getQuantity() |
Modifier and Type | Method and Description |
---|---|
(package private) CartItem |
CartItem.add(Quantity quantity)
|
CartItem |
Cart.addOrUpdateItem(Product product,
Quantity quantity)
|
Constructor and Description |
---|
CartItem(Product product,
Quantity quantity)
Creates a new
CartItem . |
OrderLine(Product product,
Quantity quantity)
|
Modifier and Type | Method and Description |
---|---|
Quantity |
Quantity.add(Quantity other)
Adds the given
Quantity to the current one. |
Quantity |
QuantityAttributeConverter.convertToEntityAttribute(String source) |
static Quantity |
Quantity.of(BigDecimal amount,
Metric metric)
|
static Quantity |
Quantity.of(double amount)
Creates a new
Quantity of the given amount. |
static Quantity |
Quantity.of(double amount,
Metric metric)
|
static Quantity |
Quantity.of(long amount)
Creates a new
Quantity of the given amount. |
static Quantity |
Quantity.of(long amount,
Metric metric)
|
Quantity |
Quantity.subtract(Quantity other)
Subtracts the given Quantity from the current one.
|
Quantity |
Quantity.toZero()
|
Modifier and Type | Method and Description |
---|---|
Quantity |
Quantity.add(Quantity other)
Adds the given
Quantity to the current one. |
String |
QuantityAttributeConverter.convertToDatabaseColumn(Quantity quantity) |
boolean |
Quantity.isGreaterThan(Quantity other)
Returns whether the given
Quantity is greater than the current one. |
boolean |
Quantity.isGreaterThanOrEqualTo(Quantity other)
Returns whether the given
Quantity is greater than or equal to the current one. |
boolean |
Quantity.isLessThan(Quantity other)
Returns whether the given
Quantity is less than the current one. |
Quantity |
Quantity.subtract(Quantity other)
Subtracts the given Quantity from the current one.
|
Modifier and Type | Method and Description |
---|---|
Quantity |
QuantityFormatter.parse(String text,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
String |
QuantityFormatter.print(Quantity object,
Locale locale) |
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.