From d16d1db42d38d7f11470d310215080d8554f08d2 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Sat, 1 Jun 2013 16:42:03 -0700 Subject: [PATCH] Added reference for JSONObject methods getInt(), getFloat(), getString(), and getBoolean() --- core/src/processing/data/JSONObject.java | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/core/src/processing/data/JSONObject.java b/core/src/processing/data/JSONObject.java index 52e82066e..d80a33b27 100644 --- a/core/src/processing/data/JSONObject.java +++ b/core/src/processing/data/JSONObject.java @@ -555,11 +555,11 @@ public class JSONObject { /** * Gets the String associated with a key * - * @param key A key string. - * @return A string which is the value. - * @throws JSONException if there is no string value for the key. * @webref jsonobject:method * @brief Gets the string associated with a key + * @param key a key string + * @return A string which is the value. + * @throws JSONException if there is no string value for the key. */ public String getString(String key) { Object object = this.get(key); @@ -573,12 +573,12 @@ public class JSONObject { /** * Gets the int value associated with a key * - * @param key A key string. - * @return The integer value. - * @throws JSONException if the key is not found or if the value cannot - * be converted to an integer. * @webref jsonobject:method * @brief Gets the int value associated with a key + * @param key a key string + * @return The integer value. + * @throws JSONException if the key is not found or if the value cannot + * be converted to an integer. */ public int getInt(String key) { Object object = this.get(key); @@ -613,7 +613,8 @@ public class JSONObject { /** * @webref jsonobject:method - * @brief To come... + * @brief Gets the float value associated with a key + * @param key a key string */ public float getFloat(String key) { return (float) getDouble(key); @@ -642,11 +643,11 @@ public class JSONObject { /** * Get the boolean value associated with a key. * - * @param key A key string. - * @return The truth. - * @throws JSONException if the value is not a Boolean or the String "true" or "false". * @webref jsonobject:method * @brief Gets the boolean value associated with a key + * @param key a key string + * @return The truth. + * @throws JSONException if the value is not a Boolean or the String "true" or "false". */ public boolean getBoolean(String key) { Object object = this.get(key);