Package zephyr.wallet.model
Class ZephyrOutgoingTransfer
java.lang.Object
zephyr.wallet.model.ZephyrTransfer
zephyr.wallet.model.ZephyrOutgoingTransfer
Models an outgoing transfer of funds from the wallet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleaninthashCode()merge(ZephyrOutgoingTransfer transfer) Updates this transaction by merging the latest information from the given transaction.merge(ZephyrTransfer transfer) Updates this transfer by merging the latest information from the given transfer.setAccountIndex(Integer accountIndex) setAddresses(List<String> addresses) setAmount(BigInteger amount) setAssetType(String assetType) Sets the asset of this transfer.setDestinations(List<ZephyrDestination> destinations) setSubaddressIndices(List<Integer> subaddressIndices) setTx(ZephyrTxWallet tx) toString()toString(int indent) Methods inherited from class zephyr.wallet.model.ZephyrTransfer
getAccountIndex, getAmount, getAssetType, getTx, isOutgoing
-
Constructor Details
-
ZephyrOutgoingTransfer
public ZephyrOutgoingTransfer() -
ZephyrOutgoingTransfer
-
-
Method Details
-
copy
- Specified by:
copyin classZephyrTransfer
-
isIncoming
- Specified by:
isIncomingin classZephyrTransfer
-
getSubaddressIndices
-
setSubaddressIndices
-
getAddresses
-
setAddresses
-
getDestinations
-
setDestinations
-
merge
Description copied from class:ZephyrTransferUpdates this transfer by merging the latest information from the given transfer. Merging can modify or build references to the transfer given so it should not be re-used or it should be copied before calling this method.- Overrides:
mergein classZephyrTransfer- Parameters:
transfer- is the transfer to merge into this one- Returns:
- the merged transfer
-
merge
Updates this transaction by merging the latest information from the given transaction. Merging can modify or build references to the transfer given so it should not be re-used or it should be copied before calling this method.- Parameters:
transfer- is the transfer to merge into this one- Returns:
- this transfer for chaining
-
toString
- Overrides:
toStringin classZephyrTransfer
-
toString
- Overrides:
toStringin classZephyrTransfer
-
hashCode
public int hashCode()- Overrides:
hashCodein classZephyrTransfer
-
equals
- Overrides:
equalsin classZephyrTransfer
-
setTx
- Overrides:
setTxin classZephyrTransfer
-
setAmount
- Overrides:
setAmountin classZephyrTransfer
-
setAccountIndex
- Overrides:
setAccountIndexin classZephyrTransfer
-
setAssetType
Description copied from class:ZephyrTransferSets the asset of this transfer.- Overrides:
setAssetTypein classZephyrTransfer- Parameters:
assetType- is the asset name (seeZephyrAssets)- Returns:
- this transfer for chaining
-