-
net.sf.json.JSONObject.optInt()
-
org.amplafi.json.JSONObject.optInt()
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt will be made to evaluate it as a number.
@param key A key string.
@return An object which is the value.
-
org.apache.sling.commons.json.JSONObject.optInt()
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt will be made to evaluate it as a number.
@param key A key string.
@return An object which is the value.
-
org.apache.wink.json4j.JSONObject.optInt()
Utility method to obtain the specified key as a 'int' value Provided for compatibility to other JSON models. Only values of Number will be converted to integer, all other types will return 0.
@param key The key to look up.
@return A int value if the value stored for key is an instance of Number. 0 otherwise.
-
org.codehaus.jettison.json.JSONArray.optInt()
Get the optional int value associated with an index. Zero is returned if there is no value for the index, or if the value is not a number and cannot be converted to a number.
@param index The index must be between 0 and length() - 1.
@return The value.
-
org.codehaus.jettison.json.JSONObject.optInt()
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt will be made to evaluate it as a number.
@param key A key string.
@return An object which is the value.
-
org.json.JSONArray.optInt()
Get the optional int value associated with an index. Zero is returned if there is no value for the index, or if the value is not a number and cannot be converted to a number.
@param index The index must be between 0 and length() - 1.
@return The value.
-
org.json.JSONObject.optInt()
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt will be made to evaluate it as a number.
@param key A key string.
@return An object which is the value.
-
org.slim3.repackaged.org.json.JSONObject.optInt()
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt will be made to evaluate it as a number.
@param key A key string.
@return An object which is the value.