org.neo4j.ogm.result.adapter.BaseAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neo4j-ogm-api Show documentation
Show all versions of neo4j-ogm-api Show documentation
Neo4j-OGM's internal Api for connecting different transports.
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;
}
}