public class JsonAPITableFormat extends AbstractTableFormat
Class which encapsulates behavior for the JSON API table format. Note that this class is immutable; to change the containing JSON, a new class needs to be instantiated.
Constructor and Description |
---|
JsonAPITableFormat(String json)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Collection<String>> |
getPairs()
Extracts the keys and their respective values from the data.
|
String |
toString() |
getKeys, getValues
public JsonAPITableFormat(String json)
Default constructor.
json
- the JSON to formatpublic Map<String,Collection<String>> getPairs()
AbstractTableFormat
Extracts the keys and their respective values from the data.
getPairs
in class AbstractTableFormat
Map
of all keys and their respective valuesCopyright © 2017. All rights reserved.