| 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 |
OrderLine.getQuantity() |
Quantity |
CartItem.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 | Class and Description |
|---|---|
class |
Units
The class
Unit represents everything which can be counted. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Quantity> |
Quantity.add(T quantity)
Sums two quantities up.
|
<T extends Quantity> |
Quantity.divide(T quantity)
Divides this by another quantity.
|
<T extends Quantity> |
Quantity.multiply(T quantity)
Multiplies two quantities.
|
<T extends Quantity> |
Quantity.subtract(T quantity)
Subtracts a quantity from this.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Quantity.compareTo(Quantity o) |
boolean |
Quantity.isGreaterThan(Quantity other)
Compares Quantities.
|
boolean |
Quantity.isGreaterThanOrEqualTo(Quantity other)
Compares Quantities.
|
boolean |
Quantity.isLessThan(Quantity other)
Compares Quantities
|
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.