package constant;

/*
 * Copyright 2014 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.
 */

public enum Map {
	    
		SUMMONERS_RIFT_SUMMER(1),
		SUMMONERS_RIFT_AUTUMN(2),
		PROVING_GROUNDS(3),
		TUTORIAL(3),
		TWISTED_TREELINE_ORIGINAL(4),
		CRYSTAL_SCAR(8),
		DOMINION(8),
		TWISTED_TREELINE_CURRENT(10),
                SUMMONERS_RIFT_2014(11),
		HOWLING_ABYSS(12),
		ARAM(12);
		

	    private int id;
	    
	    Map(int id) {
	        this.id = id;
	    }

	    public int getId() {
	        return id;
	    }	    
}

@@ -31,17 +31,17 @@
 ight 201
-4
+5
  Taylor 
@@ -617,434 +617,690 @@
 */%0A%0A
+import java.util.HashMap;%0A%0A
 public 
-enum
+class
  Map %7B%0A
-%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%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
 ;%0A%09
-    
 %7D%0A
+%09
 %0A%09
-    
 public 
+static Str
 in
-t
+g
  get
-Id() %7B%0A%09        return 
+MapNameById(int id) %7B%0A%09%09return maps.get(
 id
+)
 ;%0A%09
-    %7D%09    
+%7D%0A%09
 %0A%7D%0A

Update Map constant to retrieve name using mapId