Uses of Class
org.salespointframework.quantity.Quantity
-
Packages that use Quantity 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. -
-
Uses of Quantity in org.salespointframework.catalog
Methods in org.salespointframework.catalog that return Quantity Modifier and Type Method Description Quantity
Product. createQuantity(double amount)
Quantity
Product. createQuantity(long amount)
Methods in org.salespointframework.catalog with parameters of type Quantity Modifier and Type Method Description boolean
Product. supports(Quantity quantity)
void
Product. verify(Quantity quantity)
-
Uses of Quantity in org.salespointframework.inventory
Methods in org.salespointframework.inventory that return Quantity Modifier and Type Method Description Quantity
InventoryItem. getQuantity()
Quantity
InventoryItems. getTotalQuantity()
Returns the total quantity of all theInventoryItem
s contained.Methods in org.salespointframework.inventory with parameters of type Quantity Modifier and Type Method Description T
InventoryItem. decreaseQuantity(Quantity quantity)
Decreases the quantity of the currentInventoryItem
by the givenQuantity
.boolean
InventoryItem. hasSufficientQuantity(Quantity quantity)
Returns whether theInventoryItem
is available in exactly or more of the given quantity.T
InventoryItem. increaseQuantity(Quantity quantity)
Increases the quantity of the currentInventoryItem
by the givenQuantity
.Constructors in org.salespointframework.inventory with parameters of type Quantity Constructor Description InventoryItem(Product product, Quantity quantity)
MultiInventoryItem(Product product, Quantity quantity)
UniqueInventoryItem(Product product, Quantity quantity)
-
Uses of Quantity in org.salespointframework.order
Methods in org.salespointframework.order that return Quantity Modifier and Type Method Description Quantity
CartItem. getQuantity()
Quantity
OrderLine. getQuantity()
Methods in org.salespointframework.order with parameters of type Quantity Modifier and Type Method Description OrderLine
Order. addOrderLine(Product product, Quantity quantity)
CartItem
Cart. addOrUpdateItem(Product product, Quantity quantity)
-
Uses of Quantity in org.salespointframework.quantity
Fields in org.salespointframework.quantity declared as Quantity Modifier and Type Field Description static Quantity
Quantity. NONE
Methods in org.salespointframework.quantity that return Quantity Modifier and Type Method Description Quantity
Quantity. add(Quantity other)
Adds the givenQuantity
to the current one.Quantity
QuantityAttributeConverter. convertToEntityAttribute(String source)
static Quantity
Quantity. of(double amount)
Creates a newQuantity
of the given amount.static Quantity
Quantity. of(double amount, Metric metric)
static Quantity
Quantity. of(long amount)
Creates a newQuantity
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. times(int multiplier)
Creates a newQuantity
of the current one multiplied with the given int.Quantity
Quantity. times(long multiplier)
Creates a newQuantity
of the current one multiplied with the given long.Quantity
Quantity. toZero()
Methods in org.salespointframework.quantity with parameters of type Quantity Modifier and Type Method Description Quantity
Quantity. add(Quantity other)
Adds the givenQuantity
to the current one.String
QuantityAttributeConverter. convertToDatabaseColumn(Quantity quantity)
boolean
Quantity. isEqualTo(Quantity other)
Returns whether the currentQuantity
is equal to the given one negelecting potential differences in precision of the underlying amount.boolean
Quantity. isGreaterThan(Quantity other)
Returns whether the givenQuantity
is greater than the current one.boolean
Quantity. isGreaterThanOrEqualTo(Quantity other)
Returns whether the givenQuantity
is greater than or equal to the current one.boolean
Quantity. isLessThan(Quantity other)
Returns whether the givenQuantity
is less than the current one.Quantity
Quantity. subtract(Quantity other)
Subtracts the given Quantity from the current one.
-