Uses of Class
org.salespointframework.quantity.Quantity
Packages that use Quantity
Package
Description
The inventory subsystem.
The order subsystem.
Domain types to work with quantities.
-
Uses of Quantity in org.salespointframework.catalog
Methods in org.salespointframework.catalog that return QuantityModifier and TypeMethodDescriptionProduct.createQuantity(double amount) Product.createQuantity(long amount) Methods in org.salespointframework.catalog with parameters of type Quantity -
Uses of Quantity in org.salespointframework.inventory
Methods in org.salespointframework.inventory that return QuantityModifier and TypeMethodDescriptionInventoryEvents.StockShort.getCurrentQuantity()InventoryItem.getQuantity()InventoryEvents.StockShort.getThreshold()InventoryItems.getTotalQuantity()Returns the total quantity of all theInventoryItems contained.Methods in org.salespointframework.inventory with parameters of type QuantityModifier and TypeMethodDescriptionInventoryItem.decreaseQuantity(Quantity quantity) Decreases the quantity of the currentInventoryItemby the givenQuantity.booleanInventoryItem.hasSufficientQuantity(Quantity quantity) Returns whether theInventoryItemis available in exactly or more of the given quantity.InventoryItem.increaseQuantity(Quantity quantity) Increases the quantity of the currentInventoryItemby the givenQuantity.Constructors in org.salespointframework.inventory with parameters of type QuantityModifierConstructorDescriptionprotectedInventoryItem(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 QuantityModifier and TypeMethodDescriptionCart.getQuantity(Product product) Cart.getQuantity(Product.ProductIdentifier identifier) Returns the quantity for the givenProduct.ProductIdentifiercurrently contained in theCart.CartItem.getQuantity()OrderLine.getQuantity()Methods in org.salespointframework.order with parameters of type Quantity -
Uses of Quantity in org.salespointframework.quantity
Fields in org.salespointframework.quantity declared as QuantityMethods in org.salespointframework.quantity that return QuantityModifier and TypeMethodDescriptionAdds the givenQuantityto the current one.Quantity.negate()Returns the negatedQuantity.static QuantityQuantity.of(double amount) Creates a newQuantityof the given amount.static Quantitystatic QuantityQuantity.of(long amount) Creates a newQuantityof the given amount.static QuantitySubtracts the given Quantity from the current one.Quantity.times(int multiplier) Creates a newQuantityof the current one multiplied with the given int.Quantity.times(long multiplier) Creates a newQuantityof the current one multiplied with the given long.Quantity.toUnit()Returns the currentQuantityas units, flattening all non unit metrics into a single unit.Quantity.toZero()Methods in org.salespointframework.quantity with parameters of type QuantityModifier and TypeMethodDescriptionAdds the givenQuantityto the current one.booleanReturns whether the currentQuantityis equal to the given one negelecting potential differences in precision of the underlying amount.booleanQuantity.isGreaterThan(Quantity other) Returns whether the givenQuantityis greater than the current one.booleanQuantity.isGreaterThanOrEqualTo(Quantity other) Returns whether the givenQuantityis greater than or equal to the current one.booleanQuantity.isLessThan(Quantity other) Returns whether the givenQuantityis less than the current one.Subtracts the given Quantity from the current one.