public class AmountablePriceDouble
extends java.lang.Object
AmountablePrice. It is only intended for internal use.| Constructor | Description |
|---|---|
AmountablePriceDouble() |
| Modifier and Type | Method | 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
|
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.