All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jooq.tools.json.ContainerFactory Maven / Gradle / Ivy

The newest version!
package org.jooq.tools.json;

import java.util.List;
import java.util.Map;

/**
 * Container factory for creating containers for JSON object and JSON array.
 *
 * @see JSONParser#parse(java.io.Reader, ContainerFactory)
 *
 * @author FangYidong
 */
@SuppressWarnings({ "rawtypes" })
public interface ContainerFactory {
    /**
     * @return A Map instance to store JSON object, or null if you want to use org.json.simple.JSONObject.
     */
    Map createObjectContainer();

    /**
     * @return A List instance to store JSON array, or null if you want to use org.json.simple.JSONArray.
     */
    List createArrayContainer();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy