Package monero.wallet.model
Class MoneroIncomingTransfer
java.lang.Object
monero.wallet.model.MoneroTransfer
monero.wallet.model.MoneroIncomingTransfer
Models an incoming transfer of funds to the wallet.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
Return how many confirmations till it's not economically worth re-writing the chain.int
hashCode()
merge
(MoneroIncomingTransfer transfer) Updates this transaction by merging the latest information from the given transaction.merge
(MoneroTransfer transfer) Updates this transfer by merging the latest information from the given transfer.setAccountIndex
(Integer accountIndex) setAddress
(String address) setAmount
(BigInteger amount) setNumSuggestedConfirmations
(Long numSuggestedConfirmations) setSubaddressIndex
(Integer subaddressIndex) setTx
(MoneroTxWallet tx) toString()
toString
(int indent) Methods inherited from class monero.wallet.model.MoneroTransfer
getAccountIndex, getAmount, getTx, isOutgoing
-
Constructor Details
-
MoneroIncomingTransfer
public MoneroIncomingTransfer() -
MoneroIncomingTransfer
-
-
Method Details
-
copy
- Specified by:
copy
in classMoneroTransfer
-
isIncoming
- Specified by:
isIncoming
in classMoneroTransfer
-
getSubaddressIndex
-
setSubaddressIndex
-
getAddress
-
setAddress
-
getNumSuggestedConfirmations
Return how many confirmations till it's not economically worth re-writing the chain. That is, the number of confirmations before the transaction is highly unlikely to be double spent or overwritten and may be considered settled, e.g. for a merchant to trust as finalized.- Returns:
- the number of confirmations before it's not worth rewriting the chain
-
setNumSuggestedConfirmations
-
merge
Description copied from class:MoneroTransfer
Updates 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:
merge
in classMoneroTransfer
- 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:
toString
in classMoneroTransfer
-
toString
- Overrides:
toString
in classMoneroTransfer
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMoneroTransfer
-
equals
- Overrides:
equals
in classMoneroTransfer
-
setTx
- Overrides:
setTx
in classMoneroTransfer
-
setAmount
- Overrides:
setAmount
in classMoneroTransfer
-
setAccountIndex
- Overrides:
setAccountIndex
in classMoneroTransfer
-