panda.io.resource.MapResource Maven / Gradle / Ivy
package panda.io.resource;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;
/**
* resource bundle for map
*/
public class MapResource extends AbstractResource {
/**
* contents map
*/
protected final Map map;
/**
* Constructor
* @param props content map
* @param parent parent resource object
* @param locale locale
*/
public MapResource(Properties props, Resource parent, Locale locale) {
super(parent, locale);
if (props == null) {
throw new NullPointerException();
}
this.map = new HashMap();
for (Entry