Example usage for org.apache.commons.collections4 MapUtils toProperties

List of usage examples for org.apache.commons.collections4 MapUtils toProperties

Introduction

In this page you can find the example usage for org.apache.commons.collections4 MapUtils toProperties.

Prototype

public static <K, V> Properties toProperties(final Map<K, V> map) 

Source Link

Document

Gets a new Properties object initialised with the values from a Map.

Usage

From source file:com.feilong.core.bean.ConvertUtil.java

/**
 * map? {@link Properties}./*from w  w  w  .  j  a  va2  s .c o  m*/
 * 
 * <p>
 *  Properties ?? ? keyvalue,map key valuenull, {@link NullPointerException}
 * </p>
 * 
 * @param map
 *            the map
 * @return  <code>map</code> null, empty Properties<br>
 * @see org.apache.commons.collections4.MapUtils#toProperties(Map)
 * @since 1.7.3
 */
public static Properties toProperties(final Map<String, String> map) {
    return MapUtils.toProperties(map);
}