kodejava-util-package/src/main/java/org/kodejava/example/util/ResourceBundleToMap.java
private static Map<String, String> convertResourceBundleToMap(ResourceBundle resource) {
        Map<String, String> map = new HashMap<>();
        Enumeration<String> keys = resource.getKeys();
        while (keys.hasMoreElements()) {
            String key = keys.nextElement();
            map.put(key, resource.getString(key));
        }
        return map;
    }
/**
     * Convert ResourceBundle into a Map object.
     *
     * @param resource a resource bundle to convert.
     * @return Map a map version of the resource bundle.
     */
Convert ResourceBundle into a Map object.
@param resource a resource bundle to convert.
@return Map a map version of the resource bundle.
Convert ResourceBundle into a Map object . @param resource a resource bundle to convert . @return Map a map version of the resource bundle .
private static Map<String, String> convertResourceBundleToMap(ResourceBundle resource) {
        Map<String, String> map = new HashMap<>();
        Enumeration<String> keys = resource.getKeys();
        while (keys.hasMoreElements()) {
            String key = keys.nextElement();
            map.put(key, resource.getString(key));
        }
        return map;
    }
private static Map < String , String > convertResourceBundleToMap ( ResourceBundle resource ) { Map < String , String > map = new HashMap < > ( ) ; Enumeration < String > keys = resource . getKeys ( ) ; while ( keys . hasMoreElements ( ) ) { String key = keys . nextElement ( ) ; map . put ( key , resource . getString ( key ) ) ; } return map ; }
Convert ResourceBundle into a Map object.
Convert ResourceBundle into a Map object .