Package org.cyclos.impl.banking
Interface DRateTypeHandlerTestable
-
- All Superinterfaces:
DRateTypeHandler,RateTypeHandler<Date,DRateParameters,DRateParametersDTO>,TimeBasedRateTypeHandler<DRateParameters,DRateParametersDTO>
- All Known Implementing Classes:
DRateTypeHandlerImpl
public interface DRateTypeHandlerTestable extends DRateTypeHandler
A Testable Handler for D-rate, specifically created to test non-public methods of DRateTypeHandler.
-
-
Field Summary
-
Fields inherited from interface org.cyclos.impl.banking.RateTypeHandler
RATE_SCALE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendToRateParametersHistory(DRateCreationValueForTransferTypeDTO dto, TransferType tt)DatecloseDRateCreationValueForTransferTypeInHistory(TransferType tt)BigDecimalgetDRateConversionResult(RatedCurrencyAmount<Date> setOfUnits)DRateCreationValueForTransferTypegetDRateCreationValueForTransferType(Long ttId, Date date)can be used to retrieve a history value of the DRateCreationValue from the TransferType.DateinverseMerge(RatedCurrencyAmount<Date> previousSetOfUnits, RatedCurrencyAmount<Date> transferSetOfUnits, Date date)Datemerge(RatedCurrencyAmount<Date> setOfUnits1, RatedCurrencyAmount<Date> setOfUnits2, Date date)-
Methods inherited from interface org.cyclos.impl.banking.DRateTypeHandler
applyMaturityPolicyChangesForFrom, toEntity
-
Methods inherited from interface org.cyclos.impl.banking.RateTypeHandler
applyIncomingTransfer, calculateFromRates, complete, convert, convert, copy, getCreationValue, getEnableDate, getNullSafeRawRate, getRateParameters, getRateParameters, getRateParametersDTO, getRateType, isEnabled, isVisible, isVisibleToUser, nullAllAccountRates, resolveValidator, setRate, setRawRate, toEntity
-
Methods inherited from interface org.cyclos.impl.banking.TimeBasedRateTypeHandler
convert, convert, getInitValue
-
-
-
-
Method Detail
-
appendToRateParametersHistory
void appendToRateParametersHistory(DRateCreationValueForTransferTypeDTO dto, TransferType tt)
-
closeDRateCreationValueForTransferTypeInHistory
Date closeDRateCreationValueForTransferTypeInHistory(TransferType tt)
-
getDRateConversionResult
BigDecimal getDRateConversionResult(RatedCurrencyAmount<Date> setOfUnits)
-
getDRateCreationValueForTransferType
DRateCreationValueForTransferType getDRateCreationValueForTransferType(Long ttId, Date date)
can be used to retrieve a history value of the DRateCreationValue from the TransferType. Not used at present, but it is there for future use (for example, for use of rebuilding the rates from history).
-
inverseMerge
Date inverseMerge(RatedCurrencyAmount<Date> previousSetOfUnits, RatedCurrencyAmount<Date> transferSetOfUnits, Date date)
-
merge
Date merge(RatedCurrencyAmount<Date> setOfUnits1, RatedCurrencyAmount<Date> setOfUnits2, Date date) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-