Class Transaction

java.lang.Object
mekhq.campaign.finances.Transaction

public class Transaction extends Object
  • Constructor Details

  • Method Details

    • getType

      public TransactionType getType()
    • setType

      public void setType(TransactionType type)
    • getDate

      public LocalDate getDate()
    • setDate

      public void setDate(LocalDate date)
    • getAmount

      public Money getAmount()
    • setAmount

      public void setAmount(Money amount)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • updateTransaction

      @Deprecated(since="0.50.04") public String updateTransaction(Transaction previousTransaction)
      Deprecated.
      - Move to GUI Class
      I'd be better as part of the GUI class
      Since:
      0.50.04
    • voidTransaction

      @Deprecated(since="0.50.04") public String voidTransaction()
      Deprecated.
      - Move to GUI Class
      Since:
      0.50.04
    • writeToXML

      protected void writeToXML(PrintWriter pw, int indent)
    • generateInstanceFromXML

      public static Transaction generateInstanceFromXML(Node wn)
    • toString

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object