@Override public OvernightAveragedDailyRateComputation.Builder builder() { return new OvernightAveragedDailyRateComputation.Builder(); }
/** * Creates an instance from an index and accrual period dates * <p> * The dates represent the accrual period. * * @param index the index * @param startDate the first date of the accrual period * @param endDate the last date of the accrual period * @param refData the reference data to use when resolving holiday calendars * @return the rate computation */ public static OvernightAveragedDailyRateComputation of( OvernightIndex index, LocalDate startDate, LocalDate endDate, ReferenceData refData) { return OvernightAveragedDailyRateComputation.builder() .index(index) .fixingCalendar(index.getFixingCalendar().resolve(refData)) .startDate(startDate) .endDate(endDate) .build(); }
/** * Returns a builder used to create an instance of the bean. * @return the builder, not null */ public static OvernightAveragedDailyRateComputation.Builder builder() { return new OvernightAveragedDailyRateComputation.Builder(); }
/** * Returns a builder that allows this bean to be mutated. * @return the mutable builder, not null */ public Builder toBuilder() { return new Builder(this); }