MCPcopy Index your code
hub / github.com/benfry/processing4 / getString

Method getString

core/src/processing/data/JSONArray.java:293–299  ·  view source on GitHub ↗

Gets the String value associated with the specified index. @webref jsonarray:method @webBrief Gets the String value associated with an index @param index must be between 0 and length() - 1 @return A string value. @throws RuntimeException If there is no string value for the index. @see J

(int index)

Source from the content-addressed store, hash-verified

291 * @see JSONArray#getBoolean(int)
292 */
293 public String getString(int index) {
294 Object object = this.get(index);
295 if (object instanceof String) {
296 return (String)object;
297 }
298 throw new RuntimeException("JSONArray[" + index + "] not a string.");
299 }
300
301
302 /**

Callers 1

toStringArrayMethod · 0.95

Calls 4

getMethod · 0.95
optMethod · 0.95
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected