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

static Collection net::sf::json::JSONArray::toCollection ( JSONArray  jsonArray,
Class  objectClass 
) [inline, static]

Returns a List or a Set taking generics into account.

Definition at line 406 of file JSONArray.java.

References net::sf::json::JsonConfig::setRootClass(), and toCollection().

      JsonConfig jsonConfig = new JsonConfig();
      jsonConfig.setRootClass( objectClass );
      return toCollection( jsonArray, jsonConfig );

Generated by  Doxygen 1.6.0   Back to index