Android Open Source - SOIAF_RPG S O I A F Content

From Project

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.

Java Source Code

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) {
        ITEM_MAP.put(, 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) {
   = id;
            this.content = content;

        public String toString() {
            return content;

Java Source Code List