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

org.neo4j.ogm.result.adapter.BaseAdapter Maven / Gradle / Ivy

There is a newer version: 4.0.11
Show newest version
package org.neo4j.ogm.result.adapter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Frantisek Hartman
 */
public class BaseAdapter {

    public Map convertArrayPropertiesToIterable(Map properties) {
        Map props = new HashMap<>();
        for (String k : properties.keySet()) {
            Object v = properties.get(k);
            if (v.getClass().isArray()) {
                props.put(k, AdapterUtils.convertToIterable(v));
            } else {
                props.put(k, v);
            }
        }
        return props;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy