/** * Creates a new instance of {@code MapConfiguration} and initializes its * content from the specified {@code Properties} object. The resulting * configuration is not connected to the {@code Properties} object, but all * keys which are strings are copied (keys of other types are ignored). * * @param props the {@code Properties} object defining the content of this * configuration * @throws NullPointerException if the {@code Properties} object is * <b>null</b> * @since 1.8 */ public MapConfiguration(Properties props) { map = convertPropertiesToMap(props); }
/** * Creates a new instance of {@code MapConfiguration} and initializes its * content from the specified {@code Properties} object. The resulting * configuration is not connected to the {@code Properties} object, but all * keys which are strings are copied (keys of other types are ignored). * * @param props the {@code Properties} object defining the content of this * configuration * @throws NullPointerException if the {@code Properties} object is * <b>null</b> * @since 1.8 */ public MapConfiguration(Properties props) { map = convertPropertiesToMap(props); }