io.vertx.groovy.ext.mongo.internal.ConversionHelper Maven / Gradle / Ivy
package io.vertx.groovy.ext.mongo.internal;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import java.util.ArrayList;
import java.util.Base64;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
/**
* Internal API.
*/
public class ConversionHelper {
@SuppressWarnings("unchecked")
public static Object unwrap(Object obj) {
if (obj instanceof Map) {
return toJsonObject((Map) obj);
} else if (obj instanceof List) {
return toJsonArray((List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy