public final class MetaDataResult extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Double |
getDouble(String fieldName)
Get a Double field.
|
HeaderDefinition |
getHeaderDefinition()
Extract a HeaderDefinition from the meta data.
|
org.threeten.bp.LocalDate |
getLocalDate(String fieldName)
Get a LocalDate field (converted from a String internally).
|
org.threeten.bp.OffsetDateTime |
getOffsetDateTime(String fieldName)
Get a LocalDate field (converted from a String internally).
|
String |
getQuandlCode()
Get the Quandl code associated with this metadata.
|
org.json.JSONObject |
getRawJSON()
Get the underlying JSON object, useful if the data structure has changed since release.
|
String |
getString(String fieldName)
Get a String field.
|
boolean |
has(String fieldName)
Return whether a field is present.
|
int |
hashCode() |
Iterator<String> |
iterator()
An iterator over the string field names.
|
static MetaDataResult |
of(org.json.JSONObject jsonObject)
Factory method for creating and instance of a MetaDataResult.
|
String |
toPrettyPrintedString()
Print a nicely formatted representation of this object.
|
String |
toString()
Use the underlying JSON toString() to show full data structure.
|
public static MetaDataResult of(org.json.JSONObject jsonObject)
jsonObject - the JSON object returned by Quandl, not nullpublic HeaderDefinition getHeaderDefinition()
public String getQuandlCode()
public String getString(String fieldName)
fieldName - the name of the fieldpublic org.threeten.bp.LocalDate getLocalDate(String fieldName)
fieldName - the name of the fieldpublic org.threeten.bp.OffsetDateTime getOffsetDateTime(String fieldName)
fieldName - the name of the fieldpublic boolean has(String fieldName)
fieldName - the name of the fieldpublic Double getDouble(String fieldName)
fieldName - the name of the fieldpublic Iterator<String> iterator()
public org.json.JSONObject getRawJSON()
public String toString()
public String toPrettyPrintedString()
Copyright 2014-Present by Jim Moores
${javadoc.footer.license}