public class ExchangeRate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExchangeRate.Builder
Class to build instances of
ExchangeRate. |
| Constructor and Description |
|---|
ExchangeRate()
Default constructor.
|
ExchangeRate(String sourceCurrency,
String targetCurrency,
String value)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSourceCurrency()
Getter for SourceCurrency.
|
String |
getTargetCurrency()
Getter for TargetCurrency.
|
String |
getValue()
Getter for Value.
|
void |
setSourceCurrency(String sourceCurrency)
Setter for SourceCurrency.
|
void |
setTargetCurrency(String targetCurrency)
Setter for TargetCurrency.
|
void |
setValue(String value)
Setter for Value.
|
ExchangeRate.Builder |
toBuilder()
Builds a new
ExchangeRate.Builder object. |
String |
toString()
Converts this ExchangeRate into string format.
|
public String getSourceCurrency()
public void setSourceCurrency(String sourceCurrency)
sourceCurrency - Value for Stringpublic String getTargetCurrency()
public void setTargetCurrency(String targetCurrency)
targetCurrency - Value for Stringpublic String getValue()
public void setValue(String value)
value - Value for Stringpublic String toString()
public ExchangeRate.Builder toBuilder()
ExchangeRate.Builder object.
Creates the instance with the state of the current model.ExchangeRate.Builder objectCopyright © 2025. All rights reserved.