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 Side {
     BLUE(100), PURPLE(200);
 
     private static final Map<LongSideIDs = new HashMap<>();
    static {
        for(final Side s : Side.values()) {
            .put(s.IDs);
        }
    }

    
Gets the side a specified ID

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

    

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

    
Gets the ID for this side

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