Logo Search packages:      
Sourcecode: libjson-java version File versions

Object net::sf::json::JSONArray::opt ( int  index  )  [inline]

Get the optional object value associated with an index.

index The index must be between 0 and size() - 1.
An object value, or null if there is no object at that index.

Definition at line 2120 of file JSONArray.java.

References elements, and size().

Referenced by optJSONArray(), optJSONObject(), optString(), and toJSONObject().

      return (index < 0 || index >= size()) ? null : this.elements.get( index );

Generated by  Doxygen 1.6.0   Back to index