@Override public InflationEndMonthRateComputation build() { return new InflationEndMonthRateComputation( startIndexValue, endObservation); }
/** * Creates an instance from an index, start index value and reference end month. * * @param index the index * @param startIndexValue the start index value * @param referenceEndMonth the reference end month * @return the inflation rate computation */ public static InflationEndMonthRateComputation of( PriceIndex index, double startIndexValue, YearMonth referenceEndMonth) { return new InflationEndMonthRateComputation(startIndexValue, PriceIndexObservation.of(index, referenceEndMonth)); }