public class CurrencyValue extends Object implements Cloneable, Serializable
CurrencyValue
class stores the value, code and date when currecy was entered. It
also stores a list of converted functional currencies value.Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
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 String toString()
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)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int hashCode()
public static String checkDecimalFormat(String value) throws ARException
value
- ARException
public BigDecimal toFunctionalValue(String currencyCode)
currencyCode
- Code of currency to retrieve value for? Copyright 2013 BMC Software, Inc.