T
- Type of object that can contain the retrieved information from a
quotes requestpublic abstract class QuotesRequest<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected List<QuotesProperty> |
properties |
protected String |
query |
Constructor and Description |
---|
QuotesRequest(String query,
List<QuotesProperty> properties) |
Modifier and Type | Method and Description |
---|---|
List<QuotesProperty> |
getProperties() |
String |
getQuery() |
List<T> |
getResult()
Sends the request to Yahoo Finance and parses the result
|
T |
getSingleResult() |
protected abstract T |
parseCSVLine(String line) |
void |
setProperties(List<QuotesProperty> properties) |
protected final String query
protected List<QuotesProperty> properties
public QuotesRequest(String query, List<QuotesProperty> properties)
public String getQuery()
public List<QuotesProperty> getProperties()
public void setProperties(List<QuotesProperty> properties)
public T getSingleResult() throws IOException
IOException
public List<T> getResult() throws IOException
IOException
- when there's a connection problem or the request is incorrectCopyright © 2022. All rights reserved.