Class InvestFields


  • public class InvestFields
    extends java.lang.Object
    InvestField objects know how to extract the relevant fields from investment transactions so that they can be more easily edited and displayed.
    • Field Detail

      • hasPrice

        public boolean hasPrice
      • hasSecurity

        public boolean hasSecurity
      • hasShares

        public boolean hasShares
      • hasFee

        public boolean hasFee
      • hasCategory

        public boolean hasCategory
      • hasXfrAcct

        public boolean hasXfrAcct
      • hasAmount

        public boolean hasAmount
      • hasMemo

        public boolean hasMemo
      • negateSecurity

        public boolean negateSecurity
      • negateCategory

        public boolean negateCategory
      • date

        public int date
      • taxDate

        public int taxDate
      • checkNum

        public java.lang.String checkNum
      • payee

        public java.lang.String payee
      • memo

        public java.lang.String memo
      • amount

        public long amount
      • shares

        public long shares
      • price

        public double price
      • security

        public Account security
      • category

        public Account category
      • fee

        public long fee
      • debug

        public boolean debug
    • Constructor Detail

      • InvestFields

        public InvestFields()
    • Method Detail

      • setFieldStatus

        public void setFieldStatus​(Txn txn)
      • setFieldStatus

        public void setFieldStatus​(InvestTxnType txnType,
                                   Txn txn)
      • storeFields

        public void storeFields​(ParentTxn txn)
      • safeRate

        public static final double safeRate​(double rate)
        If the given rate is zero, return a number that can be used as a denominator, otherwise,
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object