Пример #1
0
 public static Choice getAccountTypes() {
   Choice list = new Choice();
   for (AccountType v : AccountType.values()) {
     list.add(v.name());
   }
   return list;
 }
Пример #2
0
 public static int lookupOrdinal(String s) {
   AccountType t = valueOf(AccountType.class, s);
   return t.ordinal();
 }