public final class CurrencySnapshot extends MoneydanceSyncableItem
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYNCABLE_TYPE_VALUE |
book, info
Constructor and Description |
---|
CurrencySnapshot(AccountBook book) |
Modifier and Type | Method and Description |
---|---|
long |
getDailyVolume()
Get the daily volume for this currency (used only for securities)
|
long |
getDate()
Deprecated.
use getDateInt() instead
|
int |
getDateInt()
Get the date for this snapshot
|
double |
getRawRate()
Get the rate used to compute values in different currencies
|
java.lang.String |
getSyncItemType()
Subclasses should override this to return a static string identifying their type of object
|
double |
getUserDailyHigh()
Get the highest rate recorded on the date of this snapshot
(used only for securities)
|
double |
getUserDailyLow()
Get the lowest rate recorded on the date of this snapshot
(used only for securities)
|
double |
getUserRate()
Get the closing rate for the given day
|
void |
itemWasUpdated()
This is called after an item is updated by calling itemWasUpdated(SyncRecord).
|
void |
setDailyVolume(long newVolume) |
void |
setDate(long newDate) |
void |
setDateInt(int date) |
void |
setRawRate(double rt) |
void |
setUserDailyHigh(double newUserHigh) |
void |
setUserDailyLow(double newUserLow) |
void |
setUserRate(double rate) |
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, syncItem
public static final java.lang.String SYNCABLE_TYPE_VALUE
public CurrencySnapshot(AccountBook book)
public final java.lang.String getSyncItemType()
MoneydanceSyncableItem
getSyncItemType
in interface com.infinitekind.tiksync.SyncableItem
getSyncItemType
in class MoneydanceSyncableItem
public void itemWasUpdated()
MoneydanceSyncableItem
itemWasUpdated
in class MoneydanceSyncableItem
public final long getDate()
public final int getDateInt()
public final double getUserRate()
public final double getRawRate()
public final long getDailyVolume()
public final double getUserDailyHigh()
public final double getUserDailyLow()
public final void setDate(long newDate)
public java.lang.String toString()
toString
in class java.lang.Object
public final void setDateInt(int date)
public final void setUserRate(double rate)
public final void setRawRate(double rt)
public final void setDailyVolume(long newVolume)
public final void setUserDailyLow(double newUserLow)
public final void setUserDailyHigh(double newUserHigh)