public class AmountablePriceDouble extends Object
AmountablePrice. It is only intended for internal use.| Modifier and Type | Field and Description |
|---|---|
private javafx.beans.property.DoubleProperty |
amount |
private javafx.beans.property.DoubleProperty |
sum |
| Constructor and Description |
|---|
AmountablePriceDouble() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double amount,
double avgPrice)
Add a number items
|
double |
getAmount() |
int |
getAVGPrice()
Retrieve the average price of one item
|
double |
getAVGPriceExact() |
void |
remove(double amount)
Remove a number of items
|
private final javafx.beans.property.DoubleProperty amount
private final javafx.beans.property.DoubleProperty sum
public double getAmount()
public int getAVGPrice()
public double getAVGPriceExact()
public void add(double amount,
double avgPrice)
amount - number of the items to be addedavgPrice - average price of one item that is addedpublic void remove(double amount)
amount - of items to be removedCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.