T - public class BaseAmountable<T extends IAmountable> extends Object
| Type | Property and Description |
|---|---|
javafx.beans.property.IntegerProperty |
amount
Number of items that are amounted
|
| Modifier and Type | Field and Description |
|---|---|
protected javafx.beans.property.IntegerProperty |
amount
Number of items that are amounted
|
| Constructor and Description |
|---|
BaseAmountable() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int amount)
Add a number items
|
javafx.beans.property.IntegerProperty |
amountProperty()
Number of items that are amounted
|
int |
getAmount()
Retrieve the number of items
|
void |
remove(int amount)
Remove a number of items
|
void |
reset()
Set the amount to 0.
|
String |
toString() |
getAmount()protected final javafx.beans.property.IntegerProperty amount
public int getAmount()
public void add(int amount)
amount - number of the items to be addedpublic void remove(int amount)
amount - of items to be removedpublic void reset()
public javafx.beans.property.IntegerProperty amountProperty()
getAmount()Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.