package nai4;

/**
 *
 * @author Daniel "3ICE" Berezvai
 */
public enum Type{
  //C>R>L
  C{
    public int getValue(){
      return 2;
    }
  }, R{
    public int getValue(){
      return 1;
    }
  }, L{
    public int getValue(){
      return 0;
    }
  };

  int getValue(){
    switch(this){
    //C>R>L
    case C:
      return 2;
    case R:
      return 1;
    case L:
      return 0;
    default:
      throw new NumberFormatException("Unexpected type!");
    }
  }
}
