public class InvestFields
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long |
amount |
Account |
category |
java.lang.String |
checkNum |
CurrencyType |
curr |
int |
date |
boolean |
debug |
long |
fee |
Account |
feeAcct |
boolean |
hasAmount |
boolean |
hasCategory |
boolean |
hasFee |
boolean |
hasMemo |
boolean |
hasPrice |
boolean |
hasSecurity |
boolean |
hasShares |
boolean |
hasXfrAcct |
java.lang.String |
memo |
boolean |
negateCategory |
boolean |
negateSecurity |
java.lang.String |
payee |
double |
price |
CurrencyType |
secCurr |
Account |
security |
long |
shares |
AbstractTxn.ClearedStatus |
status |
int |
taxDate |
InvestTxnType |
txnType |
Account |
xfrAcct |
Constructor and Description |
---|
InvestFields() |
Modifier and Type | Method and Description |
---|---|
static double |
safeRate(double rate)
If the given rate is zero, return a number that can be used as a denominator,
otherwise,
|
void |
setFieldStatus(InvestTxnType txnType,
Txn txn) |
void |
setFieldStatus(Txn txn) |
void |
storeFields(ParentTxn txn) |
java.lang.String |
toString() |
public boolean hasPrice
public boolean hasSecurity
public boolean hasShares
public boolean hasFee
public boolean hasCategory
public boolean hasXfrAcct
public boolean hasAmount
public boolean hasMemo
public boolean negateSecurity
public boolean negateCategory
public CurrencyType curr
public CurrencyType secCurr
public int date
public int taxDate
public InvestTxnType txnType
public java.lang.String checkNum
public java.lang.String payee
public java.lang.String memo
public AbstractTxn.ClearedStatus status
public long amount
public long shares
public double price
public Account security
public Account category
public Account xfrAcct
public Account feeAcct
public long fee
public boolean debug
public void setFieldStatus(Txn txn)
public void setFieldStatus(InvestTxnType txnType, Txn txn)
public void storeFields(ParentTxn txn)
public static final double safeRate(double rate)
public java.lang.String toString()
toString
in class java.lang.Object