Java Properties to Map toMap(Properties properties)

Here you can find the source of toMap(Properties properties)

Description

to Map

License

Apache License

Declaration

public static Map<Object, Object> toMap(Properties properties) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

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

public class Main {
    public static Map<Object, Object> toMap(Properties properties) {
        Map<Object, Object> m = new HashMap<Object, Object>();
        if (null != properties) {
            for (Object key : properties.keySet()) {
                m.put(key, properties.get(key));
            }//from  w ww.ja v  a2s.c  o  m
        }
        return m;
    }
}

Related

  1. toMap(final Properties properties)
  2. toMap(final Properties properties)
  3. toMap(Properties properties)
  4. toMap(Properties properties)
  5. toMap(Properties properties)
  6. toMap(Properties properties)
  7. toMap(Properties properties)
  8. toMap(Properties properties)
  9. toMap(Properties properties)