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

JSONArray net::sf::json::JSONArray::element ( int  index,
boolean  value 
) [inline]

Put or replace a boolean value in the JSONArray. If the index is greater than the length of the JSONArray, then null elements will be added as necessary to pad it out.

index The subscript.
value A boolean value.
JSONException If the index is negative.

Definition at line 1437 of file JSONArray.java.

References element().

      return element( index, value ? Boolean.TRUE : Boolean.FALSE );

Generated by  Doxygen 1.6.0   Back to index