public class Wallet
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
MAX_SELECTIONS_OF_CONTRACTS |
Constructor | Description |
---|---|
Wallet() |
Modifier and Type | Method | Description |
---|---|---|
Wallet |
addContract(Contract contract) |
|
Contract |
buildContractWithValue(java.lang.String fieldName,
@NonNull Decimal value) |
Join this contract with other (split when the sum of contracts is greater) or
split the current one to have the input value in the one contract.
|
static java.util.List<Wallet> |
determineWallets(java.util.List<Contract> contracts) |
|
java.util.List<Contract> |
getContracts() |
|
Wallet |
setContracts(java.util.List<Contract> contracts) |
public static final int MAX_SELECTIONS_OF_CONTRACTS
public Contract buildContractWithValue(java.lang.String fieldName, @NonNull Decimal value) throws java.lang.Exception
fieldName
- is name of field for split or joinvalue
- is value to have in a one contractContract
java.lang.Exception
- if something went wrongpublic static java.util.List<Wallet> determineWallets(java.util.List<Contract> contracts)
public java.util.List<Contract> getContracts()