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.
|
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 |
CartItem.getQuantity()
|
Quantity |
OrderLine.getQuantity() |
Modifier and Type | Method and Description |
---|---|
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. |
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. |
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.
|
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.