package constant;

/*
 * Copyright 2015 Taylor Caldwell
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.util.HashMap;

public class Map {

	private static final HashMap<Integer, String> maps;
	
	static {
		HashMap<Integer, String> hm = new HashMap<Integer, String>();
		hm.put(1, "Summoner's Rift"); //Original Summer Variant
		hm.put(2, "Summoner's Rift"); //Original Autumn Variant
		hm.put(3, "The Proving Grounds"); //Tutorial Map
		hm.put(4, "Twisted Treeline"); //Original Version
		hm.put(8, "The Crystal Scar"); //Dominion Map
		hm.put(10, "Twisted Treeline"); //Current Version
		hm.put(11, "Summoner's Rift"); //Current Version
		hm.put(12, "Howling Abyss"); //ARAM Map
		
		maps = hm;
	}
	
	public static String getMapNameById(int id) {
		return maps.get(id);
	}
	
}

@@ -35,9 +35,9 @@
  201
-5
+4
  Tay
@@ -617,690 +617,434 @@
 */%0A%0A
-import java.util.HashMap;%0A%0A
 public 
-class
+enum
  Map %7B%0A
-%0A%09private static final HashMap%3CInteger, String%3E maps;%0A%09%0A%09static %7B%0A%09%09HashMap%3CInteger, String%3E hm = new HashMap%3CInteger, String%3E();%0A%09%09hm.put(1, %22Summoner's Rift%22); //Original Summer Variant%0A%09%09hm.put(2, %22Summoner's Rift%22); //Original Autumn Variant%0A%09%09hm.put(3, %22The Proving Grounds%22); //Tutorial Map%0A%09%09hm.put(4, %22Twisted Treeline%22); //Original Version%0A%09%09hm.put(8, %22The Crystal Scar%22); //Dominion Map%0A%09%09hm.put(10, %22Twisted Treeline%22); //Current Version%0A%09%09hm.put(11, %22Summoner's Rift%22); //Current Version%0A%09%09hm.put(12, %22Howling Abyss%22); //ARAM Map%0A%09%09%0A%09%09maps = hm
+%09    %0A%09%09SUMMONERS_RIFT_SUMMER(1),%0A%09%09SUMMONERS_RIFT_AUTUMN(2),%0A%09%09PROVING_GROUNDS(3),%0A%09%09TUTORIAL(3),%0A%09%09TWISTED_TREELINE_ORIGINAL(4),%0A%09%09CRYSTAL_SCAR(8),%0A%09%09DOMINION(8),%0A%09%09TWISTED_TREELINE_CURRENT(10),%0A                SUMMONERS_RIFT_2014(11),%0A%09%09HOWLING_ABYSS(12),%0A%09%09ARAM(12);%0A%09%09%0A%0A%09    private int id;%0A%09    %0A%09    Map(int id) %7B%0A%09        this.id = id
 ;%0A%09
+    
 %7D%0A
-%09
 %0A%09
+    
 public 
-static String getMapNameById(int id) %7B%0A%09%09return maps.get(
+int getId() %7B%0A%09        return 
 id
-)
 ;%0A%09
-%7D%0A%09
+    %7D%09    
 %0A%7D%0A

Revert "Update Map constant to retrieve name using mapId"