Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.core.common;
 
 import java.util.Map;
 
 public enum GameMap {
     HOWLING_ABYSS(12), SUMMONERS_RIFT(11), SUMMONERS_RIFT_AUTUMN(2), SUMMONERS_RIFT_SUMMER(1), THE_CRYSTAL_SCAR(8), THE_PROVING_GROUNDS(3), TWISTED_TREELINE(10), TWISTED_TREELINE_ORIGINAL(
             4);
 
    private static final Map<LongGameMapIDs = new HashMap<>();
    static {
        for(final GameMap m : GameMap.values()) {
            .put(m.IDm);
        }
    }

    
Gets the map for a specified ID

Parameters:
ID the map ID
Returns:
the map type
    public static GameMap forID(final long ID) {
        return .get(ID);
    }
    private final Long ID;

    

Parameters:
ID
    private GameMap(final long ID) {
        this. = ID;
    }

    
Gets the ID for this map

Returns:
the ID for this map
    public long getID() {
        return ;
    }
New to GrepCode? Check out our FAQ X