Example #1
0
 public static List<String> list() {
   List<String> list = new ArrayList<String>();
   for (DepositType dm : DepositType.values()) {
     list.add(dm.code);
   }
   return list;
 }
Example #2
0
 public static DepositType fromString(String code) {
   if (code != null) {
     for (DepositType dm : DepositType.values()) {
       if (code.equalsIgnoreCase(dm.code)) {
         return dm;
       }
     }
   }
   return null;
 }