public class ConsoleUtilities extends Object
| Constructor and Description |
|---|
ConsoleUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static String |
arrayValueMatchRegex(String[] array,
String regex) |
static Map<String,Object> |
jsonToMap(org.json.JSONObject json) |
static String |
listValueMatchRegex(List<String> arguments,
String regex) |
static String |
mapToConsoleOutput(Map<String,Object> map) |
static List<Object> |
toList(org.json.JSONArray array) |
static Map<String,Object> |
toMap(org.json.JSONObject object)
Converts a json object into a map object.
|
public static Map<String,Object> jsonToMap(org.json.JSONObject json) throws org.json.JSONException
org.json.JSONExceptionpublic static Map<String,Object> toMap(org.json.JSONObject object) throws org.json.JSONException
object - - the json objectorg.json.JSONExceptionpublic static List<Object> toList(org.json.JSONArray array) throws org.json.JSONException
org.json.JSONExceptionCopyright © 2016. All rights reserved.