Back to project page RPGWorld.
The source code is released under:
MIT License
If you think the Android project RPGWorld listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Jun 11, 2013/* w ww . ja v a2s. c o m*/ * SettingsHolder.java * Daniel Pok * AP Java 6th */ package com.nokarateclass.rpgworld.io; import java.util.HashMap; import java.util.Map; /** * @author poler_000 * */ public class SettingsHolder extends HashMap<String, Object>{ /** * */ private static final long serialVersionUID = 8571068923732304861L; /** * */ public SettingsHolder() { super(); } public SettingsHolder(int initialCapacity){ super(initialCapacity); } public SettingsHolder(int initialCapacity, float loadFactor){ super(initialCapacity, loadFactor); } public SettingsHolder(Map<? extends String, ? extends Object> m){ super(m); } @SuppressWarnings("unchecked") public <T> T getType(String key){ Object obj = get(key); if(obj == null) return null; try{ return (T) obj; } catch(Exception ex){ return null; } } }