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

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

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.

index The index must be between 0 and size() - 1.
The value.

Definition at line 2190 of file JSONArray.java.

      return optInt( index, 0 );

Generated by  Doxygen 1.6.0   Back to index