/** * Creates a builder that can be used to build an instance of {@code MarketData}. * * @param valuationDate the valuation date * @return the builder, not null */ public static ImmutableMarketDataBuilder builder(LocalDate valuationDate) { return new ImmutableMarketDataBuilder(valuationDate); }
/** * Returns a builder populated with the same data as this instance. * * @return the mutable builder, not null */ public ImmutableMarketDataBuilder toBuilder() { return new ImmutableMarketDataBuilder(valuationDate, values, timeSeries); }