Package monero.wallet.model
Class MoneroTransfer
java.lang.Object
monero.wallet.model.MoneroTransfer
- Direct Known Subclasses:
MoneroIncomingTransfer
,MoneroOutgoingTransfer
,MoneroTransferQuery
Models a base transfer of funds to or from the wallet.
Transfers are either of type MoneroIncomingTransfer or MoneroOutgoingTransfer so this class is abstract.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract MoneroTransfer
copy()
boolean
getTx()
int
hashCode()
abstract Boolean
merge
(MoneroTransfer transfer) Updates this transfer by merging the latest information from the given transfer.setAccountIndex
(Integer accountIndex) setAmount
(BigInteger amount) setTx
(MoneroTxWallet tx) toString()
toString
(int indent)
-
Constructor Details
-
MoneroTransfer
public MoneroTransfer() -
MoneroTransfer
-
-
Method Details
-
copy
-
getTx
-
setTx
-
isOutgoing
-
isIncoming
-
getAmount
-
setAmount
-
getAccountIndex
-
setAccountIndex
-
merge
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.- Parameters:
transfer
- is the transfer to merge into this one- Returns:
- the merged transfer
-
toString
-
toString
-
hashCode
public int hashCode() -
equals
-