|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bmc.arsys.api.CurrencyValue
public class CurrencyValue
The CurrencyValue
class stores the value, code and date when currecy
was entered. It also stores a list of converted functional currencies value.
Constructor Summary | |
---|---|
CurrencyValue()
construct an empty Currency Value object |
|
CurrencyValue(BigDecimal value,
String currencyCode,
Timestamp conversionDate,
List<FuncCurrencyInfo> funcCurrencyList)
|
|
CurrencyValue(String currencyInfoString)
Construct a CurrencyValue object with the provided string. |
|
CurrencyValue(String value,
String currencyCode,
Timestamp conversionDate,
List<FuncCurrencyInfo> funcCurrencyList)
|
Method Summary | |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self |
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the provided one. |
Timestamp |
getConversionDate()
Returns conversion date |
String |
getCurrencyCode()
Returns currency code. |
List<FuncCurrencyInfo> |
getFuncCurrencyList()
Returns a list of functional currencies associated with the field. |
BigDecimal |
getValue()
Returns the value of the currency in the format of a Java Big Decimal. |
String |
getValueString()
Returns the value of the currency in the format of a string. |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
void |
setConversionDate(long ConversionDate)
Sets the conversion date |
void |
setCurrencyCode(String currencyCode)
Sets currency code |
void |
setFuncCurrencyList(List<FuncCurrencyInfo> funcCurrencyList)
Sets a list of functional currencies associated with the field. |
void |
setValue(BigDecimal value)
Sets value of currency using a big decimal. |
String |
toString()
Returns a string description of the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CurrencyValue()
public CurrencyValue(String value, String currencyCode, Timestamp conversionDate, List<FuncCurrencyInfo> funcCurrencyList)
public CurrencyValue(BigDecimal value, String currencyCode, Timestamp conversionDate, List<FuncCurrencyInfo> funcCurrencyList)
public CurrencyValue(String currencyInfoString)
IllegalArgumentException
- if you enter a string that does not have three (and only three) digits after the decimal point.Method Detail |
---|
public String toString()
toString
in class Object
public BigDecimal getValue()
public String getValueString()
public void setValue(BigDecimal value)
public String getCurrencyCode()
public void setCurrencyCode(String currencyCode)
public Timestamp getConversionDate()
public void setConversionDate(long ConversionDate)
public List<FuncCurrencyInfo> getFuncCurrencyList()
public void setFuncCurrencyList(List<FuncCurrencyInfo> funcCurrencyList)
public boolean equals(Object obj)
equals
in class Object
obj
- the object that we are comparing to
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int hashCode()
hashCode
in class Object
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |