T - AmountablePricepublic class BaseAmountable<T extends IAmountable>
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected ch.sahits.game.openpatrician.utilities.javafx.IJavaFXApplicationThreadExecution |
fxTheadExecution |
| Constructor | Description |
|---|---|
BaseAmountable() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int amount) |
Add a number items
|
javafx.beans.property.ReadOnlyIntegerProperty |
amountProperty() |
|
boolean |
equals(java.lang.Object o) |
|
int |
getAmount() |
Retrieve the number of items
|
int |
hashCode() |
|
void |
remove(int amount) |
Remove a number of items
|
void |
reset() |
Set the amount to 0.
|
protected void |
setAmount(int amount) |
|
java.lang.String |
toString() |
@Autowired protected ch.sahits.game.openpatrician.utilities.javafx.IJavaFXApplicationThreadExecution fxTheadExecution
public int getAmount()
protected void setAmount(int amount)
public javafx.beans.property.ReadOnlyIntegerProperty amountProperty()
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 java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.