@@ -0,0 +1,979 @@
+package task.util.type;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: benjamin%0A * Date: 06/10/13%0A * Time: 15:34%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic enum Priorite %7B%0A%0A  HIGH('H', 0),%0A  MEDIUM('M', 1),%0A  LOW('L', 2),%0A  NONE('-', 3);%0A%0A  public static final String REGEX = %22(H%7Ch%7CM%7Cm%7CL%7Cl%7C-)%22;%0A%0A  private static final Priorite%5B%5D _l = %7B HIGH, MEDIUM, LOW %7D;%0A%0A  private final char _c;%0A  private final int  _i;%0A%0A  private Priorite(char c, int i) %7B%0A    _c = c;%0A    _i = i;%0A  %7D%0A%0A  public static Priorite getInstance(char c) %7B%0A    c = Character.toUpperCase(c);%0A    for (Priorite p : _l)%0A      if (p._c == c) return p;%0A    return NONE;%0A  %7D%0A%0A  public static Priorite getInstance(String s) %7B%0A    return (s != null && s.length() == 1) ? getInstance(s.charAt(0)) : NONE;%0A  %7D%0A%0A  public static int compare(Priorite p1, Priorite p2) %7B%0A    return Integer.compare(p1._i, p2._i);%0A  %7D%0A%0A  @Override%0A  public String toString() %7B%0A    return String.valueOf(_c);%0A  %7D%0A%0A%7D%0A

Create Priorite.java