@Component @Lazy @DependentInitialisation(value=StartNewGameBean.class) public class TransferUtil extends Object
| Constructor and Description |
|---|
TransferUtil() |
| Modifier and Type | Method and Description |
|---|---|
int |
calculateAvailableAmount(ETransferAmount movableAmount,
int maxAmount)
Calculate the available amount to be transfered.
|
int |
calculateAvailableAmount(javafx.beans.property.ObjectProperty<ETransferAmount> movableAmount,
int maxAmount)
Calculate the available amount to be transfered.
|
public int calculateAvailableAmount(javafx.beans.property.ObjectProperty<ETransferAmount> movableAmount, int maxAmount)
maxAmount - maximal amount that is stored. This is the amount that is the upper bound,
which can be transferred.movableAmount - size type indicating how much should be moved.public int calculateAvailableAmount(ETransferAmount movableAmount, int maxAmount)
maxAmount - maximal amount that is stored. This is the amount that is the upper bound,
which can be transferred.movableAmount - size type indicating how much should be moved.Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.