package com.github.hotchpotch.fontengine;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by yuichi-tateno on 2015/02/28.
 */
public class IconicFontMap {
    private HashMap<String, Character> fontMap;

    public IconicFontMap() {
        super();
        fontMap = new HashMap<>();
    }

    public IconicFontMap put(String key, Character value) {
        fontMap.put(key, value);
        return this;
    }

    public Character get(String key) {
        return fontMap.get(key);
    }

    public List<String> allNames() {
        return new ArrayList<>(fontMap.keySet());
    }
}

@@ -53,25 +53,23 @@
 va.util.
-ArrayList
+HashMap
 ;%0Aimport
@@ -71,39 +71,41 @@
 mport java.util.
-HashMap
+SortedSet
 ;%0Aimport java.ut
@@ -107,19 +107,22 @@
 va.util.
-Lis
+TreeSe
 t;%0A%0A/**%0A
@@ -545,19 +545,24 @@
  public 
-Lis
+SortedSe
 t%3CString
@@ -599,16 +599,14 @@
 new 
-ArrayLis
+TreeSe
 t%3C%3E(

Change return type, List to SortedSet