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 QuantityProduct. createQuantity(double amount)QuantityProduct. createQuantity(long amount)Methods in org.salespointframework.catalog with parameters of type Quantity Modifier and Type Method Description booleanProduct. supports(Quantity quantity)voidProduct. verify(Quantity quantity) -
Uses of Quantity in org.salespointframework.inventory
Methods in org.salespointframework.inventory that return Quantity Modifier and Type Method Description QuantityInventoryItem. getQuantity()QuantityInventoryItems. getTotalQuantity()Returns the total quantity of all theInventoryItems contained.Methods in org.salespointframework.inventory with parameters of type Quantity Modifier and Type Method Description TInventoryItem. 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.TInventoryItem. increaseQuantity(Quantity quantity)Increases the quantity of the currentInventoryItemby 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 QuantityCartItem. getQuantity()QuantityOrderLine. getQuantity()Methods in org.salespointframework.order with parameters of type Quantity Modifier and Type Method Description OrderLineOrder. addOrderLine(Product product, Quantity quantity)CartItemCart. 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 QuantityQuantity. NONEMethods in org.salespointframework.quantity that return Quantity Modifier and Type Method Description QuantityQuantity. add(Quantity other)Adds the givenQuantityto the current one.QuantityQuantityAttributeConverter. convertToEntityAttribute(String source)static QuantityQuantity. of(double amount)Creates a newQuantityof the given amount.static QuantityQuantity. of(double amount, Metric metric)static QuantityQuantity. of(long amount)Creates a newQuantityof the given amount.static QuantityQuantity. of(long amount, Metric metric)QuantityQuantity. subtract(Quantity other)Subtracts the given Quantity from the current one.QuantityQuantity. times(int multiplier)Creates a newQuantityof the current one multiplied with the given int.QuantityQuantity. times(long multiplier)Creates a newQuantityof the current one multiplied with the given long.QuantityQuantity. toZero()Methods in org.salespointframework.quantity with parameters of type Quantity Modifier and Type Method Description QuantityQuantity. add(Quantity other)Adds the givenQuantityto the current one.StringQuantityAttributeConverter. convertToDatabaseColumn(Quantity quantity)booleanQuantity. isEqualTo(Quantity other)Returns 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.QuantityQuantity. subtract(Quantity other)Subtracts the given Quantity from the current one.
-