Back to project page SOIAF_RPG.
The source code is released under:
GNU General Public License
If you think the Android project SOIAF_RPG listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.mroehrl.soiaf_rpg.content; //from w w w . j a v a2 s. c o m import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Helper class for providing sample content for user interfaces created by * Android template wizards. * */ public class SOIAFContent { public static List<SOIAFItem> ITEMS = new ArrayList<SOIAFItem>(); public static Map<String, SOIAFItem> ITEM_MAP = new HashMap<String, SOIAFItem>(); public static void addItem(String id, String item) { addItem(new SOIAFItem(id, item)); } public static void addItem(SOIAFItem item) { ITEMS.add(item); ITEM_MAP.put(item.id, item); } /** * A dummy item representing a piece of content. */ public static class SOIAFItem { public String id; public String content; public SOIAFItem(String id, String content) { this.id = id; this.content = content; } @Override public String toString() { return content; } } }