MCPcopy Index your code
hub / github.com/MCBans/MCBans / optString

Method optString

src/main/java/com/mcbans/plugin/org/json/JSONArray.java:544–546  ·  view source on GitHub ↗

Get the optional string value associated with an index. It returns an empty string if there is no value at that index. If the value is not a string and is not null, then it is coverted to a string. @param index The index must be between 0 and length() - 1. @return A String value.

(int index)

Source from the content-addressed store, hash-verified

542 * @return A String value.
543 */
544 public String optString(int index) {
545 return optString(index, "");
546 }
547
548
549 /**

Callers 1

toStringMethod · 0.45

Calls 2

optMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected