T
- Type of object that can contain the retrieved information from a
quotes requestpublic abstract class QuotesRequest<T> extends Object
Constructor and Description |
---|
QuotesRequest(String symbols) |
Modifier and Type | Method and Description |
---|---|
List<T> |
getResult()
Sends the request to Yahoo Finance and parses the result
|
T |
getSingleResult() |
String |
getSymbols() |
protected abstract T |
parseJson(com.fasterxml.jackson.databind.JsonNode node) |
protected final String symbols
public QuotesRequest(String symbols)
public String getSymbols()
protected abstract T parseJson(com.fasterxml.jackson.databind.JsonNode node)
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.