public class CurrencyData
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
CurrencyData(java.lang.String inCode,
java.lang.String inDescription)
This method creates a currency data object with a given currency code and description.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object aobj)
Compares this object to another object.
|
java.lang.String |
getCurrencyCode()
This method gets the currency code.
|
java.lang.String |
getCurrencyDescription()
This method gets the store's currency description.
|
void |
setCurrencyCode(java.lang.String inCode)
This method gets the currency code.
|
void |
setCurrencyDescription(java.lang.String inDescription)
This method sets the store's currency description.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public CurrencyData(java.lang.String inCode, java.lang.String inDescription)
inCode
- The currency codeinDescription
- The currency descriptionpublic int compareTo(java.lang.Object aobj)
compareTo
in interface java.lang.Comparable
aobj
- the Object to be compared.java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this object.Comparable
public java.lang.String getCurrencyCode()
public java.lang.String getCurrencyDescription()
public void setCurrencyCode(java.lang.String inCode)
inCode
- The currency codepublic void setCurrencyDescription(java.lang.String inDescription)
inDescription
- The currency descriptionpublic java.lang.String toString()
toString
in class java.lang.Object
Object