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

org.vertexium.util.ApacheConfigurationUtils Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
package org.vertexium.util;

import org.apache.commons.configuration.Configuration;

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

public class ApacheConfigurationUtils {
    public static Map toMap(Configuration configuration) {
        Map result = new HashMap();
        Iterator keys = configuration.getKeys();
        while (keys.hasNext()) {
            String key = (String) keys.next();
            result.put(key, configuration.getProperty(key));
        }
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy