|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.moneydance.apps.md.model.InvestUtil
public abstract class InvestUtil
Miscellaneous investment functions
| Method Summary | |
|---|---|
static double |
getAverageCost(SecurityAccount sec)
Compute the average cost of the shares in the given security account. |
static long |
getAverageCostBasis(SecurityAccount sec)
Compute the average cost of the shares in the given security account. |
static long |
getCostBasis(SecurityAccount sec)
Returns the current cost basis for the given security. |
static double |
getLotBasedCost(SecurityAccount sec)
Compute and return the lot-based costs for the unsold securities. |
static long |
getLotBasedCostBasis(SecurityAccount sec)
Compute the cost of any unsold shares (which are determined based on user-specified lots). |
static long |
getPerShareSalesNet(AbstractTxn atxn)
|
static boolean |
isCostBasisValid(SecurityAccount sec)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long getPerShareSalesNet(AbstractTxn atxn)
public static long getAverageCostBasis(SecurityAccount sec)
public static double getAverageCost(SecurityAccount sec)
public static long getCostBasis(SecurityAccount sec)
public static long getLotBasedCostBasis(SecurityAccount sec)
public static double getLotBasedCost(SecurityAccount sec)
public static boolean isCostBasisValid(SecurityAccount sec)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||