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