/** * Set the rate types. * * @param rateTypes the rate types, not null and not empty. * @return this, for chaining. * @throws IllegalArgumentException when not at least one {@link RateType} is provided. */ public ProviderContextBuilder setRateTypes(RateType... rateTypes) { return setRateTypes(Arrays.asList(rateTypes)); }