Class GenericModel
- java.lang.Object
-
- com.github.dannil.scbjavaclient.model.GenericModel
-
public class GenericModel extends Object
Generic model which tries to convert a raw JSON string to classes which can be operated upon.
- Since:
- 0.1.1
-
-
Constructor Summary
Constructors Constructor Description GenericModel(String json)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Map<String,Object>>
getEntries()
Retrieves all the entries.Collection<Map<String,Object>>
getEntries(String key, String value)
Retrieves all the entries matching the input criterion.Collection<Map<String,Object>>
getEntries(Map<String,Collection<String>> inputs)
Retrieves all the entries matching the input criterion.String
toString()
-
-
-
Constructor Detail
-
GenericModel
public GenericModel(String json)
Default constructor.
- Parameters:
json
- the JSON to format
-
-
Method Detail
-
getEntries
public Collection<Map<String,Object>> getEntries()
Retrieves all the entries.
- Returns:
- all the entries
-
getEntries
public Collection<Map<String,Object>> getEntries(Map<String,Collection<String>> inputs)
Retrieves all the entries matching the input criterion.
- Parameters:
inputs
- the input criterion- Returns:
- the entries matching the input criterion
-
getEntries
public Collection<Map<String,Object>> getEntries(String key, String value)
Retrieves all the entries matching the input criterion.
- Parameters:
key
- the keyvalue
- the value- Returns:
- the entries matching the input criterion
-
-