co.easimart.EasimartAddUniqueOperation Maven / Gradle / Ivy
package co.easimart;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
/**
* An operation that adds a new element to an array field, only if it wasn't already present.
*/
/** package */ class EasimartAddUniqueOperation implements EasimartFieldOperation {
protected final LinkedHashSet