|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 currencyInfoString,
Locale locale)
|
|
CurrencyValue(String value,
String currencyCode,
Timestamp conversionDate,
List<FuncCurrencyInfo> funcCurrencyList)
|
Method Summary | |
---|---|
static String |
checkDecimalFormat(String value)
Check if the string is a valid decimal value format |
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. |
BigDecimal |
toFunctionalValue(String currencyCode)
Retrieves the functional value for the specified currency code |
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)
public CurrencyValue(String currencyInfoString, Locale locale)
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
public static String checkDecimalFormat(String value) throws ARException
value
-
ARException
public BigDecimal toFunctionalValue(String currencyCode)
currencyCode
- Code of currency to retrieve value for
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |