Java examples for Collection Framework:Map
Converts java.util.Map into java.util.Properties
//package com.java2s; import java.util.Map; import java.util.Properties; public class Main { /**/*from www.j av a 2s . co m*/ * Converts java.util.Map into java.util.Properties * @param map Map to convert * @return Properties, created from given map */ public static Properties asProperties(Map<Object, Object> map) { Properties properties = new Properties(); properties.putAll(map); return properties; } }