Class MoneroTransfer

java.lang.Object
monero.wallet.model.MoneroTransfer
Direct Known Subclasses:
MoneroIncomingTransfer, MoneroOutgoingTransfer, MoneroTransferQuery

public abstract class MoneroTransfer extends Object
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 Details

    • MoneroTransfer

      public MoneroTransfer()
    • MoneroTransfer

      public MoneroTransfer(MoneroTransfer transfer)
  • Method Details

    • copy

      public abstract MoneroTransfer copy()
    • getTx

      public MoneroTxWallet getTx()
    • setTx

      public MoneroTransfer setTx(MoneroTxWallet tx)
    • isOutgoing

      public Boolean isOutgoing()
    • isIncoming

      public abstract Boolean isIncoming()
    • getAmount

      public BigInteger getAmount()
    • setAmount

      public MoneroTransfer setAmount(BigInteger amount)
    • getAccountIndex

      public Integer getAccountIndex()
    • setAccountIndex

      public MoneroTransfer setAccountIndex(Integer accountIndex)
    • merge

      public MoneroTransfer merge(MoneroTransfer transfer)
      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

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(int indent)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object