Series Parser
Base parser for SeriesResponse subclasses, translating the raw metadata and indicator maps returned by com.crazzyghost.alphavantage.parser.Parser into typed MetaData and SimpleIndicatorUnit values.
Parameters
<T>
the concrete SeriesResponse subtype this parser produces
Inheritors
Functions
Link copied to clipboard
Builds a failed response.
Builds a successful response.
Link copied to clipboard
Returns the JSON key under which this indicator's value is nested in the API's per-date response object.
Link copied to clipboard
Link copied to clipboard
Builds a failed response from a parse error.
Link copied to clipboard
Link copied to clipboard
Decodes a raw JSON response body into a generic
String-keyed map, with the NoneableDouble/NoneableLong adapters registered so numeric-or-"None" fields decode correctly.Decodes a raw JSON response body directly into an instance of
c, with the NoneableDouble/NoneableLong adapters registered so numeric-or-"None" fields decode correctly.Link copied to clipboard
Converts an already-decoded JSON value, typically a
List produced by parseJSON, into a List of klass instances, with the NoneableDouble/NoneableLong adapters registered so numeric-or-"None" fields decode correctly.Link copied to clipboard
Encodes a
String-keyed map back into a JSON string, with the NoneableDouble/NoneableLong adapters registered.