MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getStringList

Method getStringList

src/plugins/iap/src/com/foxdebug/iap/Iap.java:420–431  ·  view source on GitHub ↗
(JSONArray args, int index)

Source from the content-addressed store, hash-verified

418 }
419
420 private List<String> getStringList(JSONArray args, int index) {
421 try {
422 JSONArray array = args.getJSONArray(index);
423 List<String> list = new ArrayList<String>();
424 for (int i = 0; i < array.length(); i++) {
425 list.add(array.getString(i));
426 }
427 return list;
428 } catch (JSONException e) {
429 return null;
430 }
431 }
432}

Callers 1

runMethod · 0.95

Calls 2

addMethod · 0.80
getStringMethod · 0.45

Tested by

no test coverage detected