@Override public List<EnumOptionData> retrieveApplicableToTypes() { final List<EnumOptionData> chargeAppliesToTypes = new ArrayList<>(); for (final ChargeAppliesTo chargeAppliesTo : ChargeAppliesTo.values()) { if (ChargeAppliesTo.INVALID.equals(chargeAppliesTo)) { continue; } chargeAppliesToTypes.add(ChargeEnumerations.chargeAppliesTo(chargeAppliesTo)); } return chargeAppliesToTypes; }
@Override public List<EnumOptionData> retrieveCollectionTimeTypes() { final List<EnumOptionData> chargeTimeTypes = new ArrayList<>(); for (final ChargeTimeType chargeTimeType : ChargeTimeType.values()) { if (ChargeTimeType.INVALID.equals(chargeTimeType) || ChargeTimeType.SAVINGS_CLOSURE.equals(chargeTimeType)) { continue; } chargeTimeTypes.add(ChargeEnumerations.chargeTimeType(chargeTimeType)); } return chargeTimeTypes; }