Example #1
0
 public static ItemKind fromValue(String v) {
   for (ItemKind c : ItemKind.values()) {
     if (c.value.equalsIgnoreCase(v)) {
       return c;
     }
   }
   throw new IllegalArgumentException(v);
 }