public final class CurrencySplit extends MoneydanceSyncableItem
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SYNCABLE_TYPE_VALUE |
book, info| Constructor and Description |
|---|
CurrencySplit(AccountBook book) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDate()
Deprecated.
use getDateInt()
|
int |
getDateInt() |
int |
getNewShares() |
int |
getOldShares() |
double |
getSplitRatio() |
java.lang.String |
getSyncItemType()
Subclasses should override this to return a static string identifying their type of object
|
void |
itemWasUpdated()
This is called after an item is updated by calling itemWasUpdated(SyncRecord).
|
static CurrencySplit |
makeSplit(AccountBook book,
CurrencyType currency,
int date,
double splitRatio,
int oldShares,
int newShares)
Create a stock split with the given ratio (which should match the old/new shares) on the given date
|
void |
setDate(long date) |
void |
setDateInt(int date) |
void |
setNewShares(int newShares) |
void |
setOldShares(int oldShares) |
void |
setSplitRatio(double newRatio) |
void |
setSplitRatio(int oldShares,
int newShares) |
java.lang.String |
toString() |
addParameters, addTags, autoSyncsChanges, decodeKeywordList, deleteItem, doesParameterExist, duplicate, encodeKeywordList, equals, getAccountParameter, getAddress, getAddressParameter, getBook, getBooleanParameter, getCurrencyParameter, getDoubleParameter, getIntParameter, getKeywords, getLongParameter, getParameter, getParameter, getParameterCount, getParameterKeys, getPreference, getPreferenceBoolean, getPreferenceDouble, getPreferenceInt, getPreferenceIntArray, getPreferenceLong, getPreferenceStringList, getPreferenceSublist, getPreferenceSubset, getSyncInfo, getSyncTimestamp, getUUID, hashCode, hasKeywordSubstring, initialize, isInEditingMode, isSyncable, itemWasUpdated, itemWillSync, itemWillSync, makeSyncableItem, removeParameter, setAccountParameter, setAddress, setAddressParameter, setCurrencyParameter, setDirty, setEditingMode, setKeywords, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterNoNotify, setPreference, setPreference, setPreference, syncItempublic static final java.lang.String SYNCABLE_TYPE_VALUE
public CurrencySplit(AccountBook book)
public final java.lang.String getSyncItemType()
MoneydanceSyncableItemgetSyncItemType in interface com.infinitekind.tiksync.SyncableItemgetSyncItemType in class MoneydanceSyncableItempublic void itemWasUpdated()
MoneydanceSyncableItemitemWasUpdated in class MoneydanceSyncableItempublic final double getSplitRatio()
public final long getDate()
public final int getDateInt()
public final int getOldShares()
public final int getNewShares()
public final void setDate(long date)
public final void setDateInt(int date)
public final void setSplitRatio(double newRatio)
public final void setSplitRatio(int oldShares,
int newShares)
public final void setOldShares(int oldShares)
public final void setNewShares(int newShares)
public final java.lang.String toString()
toString in class java.lang.Objectpublic static CurrencySplit makeSplit(AccountBook book, CurrencyType currency, int date, double splitRatio, int oldShares, int newShares)