public class FxQuote extends Object
Constructor and Description |
---|
FxQuote(String symbol) |
FxQuote(String symbol,
BigDecimal price) |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
getPrice()
Returns the requested FX rate.
|
BigDecimal |
getPrice(boolean refresh)
Returns the requested FX rate.
|
String |
getSymbol() |
void |
setPrice(BigDecimal price) |
void |
setSymbol(String symbol) |
String |
toString() |
public FxQuote(String symbol)
public FxQuote(String symbol, BigDecimal price)
public String getSymbol()
public void setSymbol(String symbol)
public BigDecimal getPrice()
public BigDecimal getPrice(boolean refresh) throws IOException
refresh
- indicates whether the data should be requested again to Yahoo FinanceIOException
- when there's a connection problempublic void setPrice(BigDecimal price)
Copyright © 2022. All rights reserved.