public ProviderContextBuilder setRateTypes ( Collection < RateType > rateTypes ) { Objects . requireNonNull ( rateTypes ) ; if ( rateTypes . isEmpty ( ) ) { throw new IllegalArgumentException ( "At least one RateType is required." ) ; } Set < RateType > rtSet = new HashSet <> ( rateTypes ) ; set ( ProviderContext . KEY_RATE_TYPES , rtSet ) ; return this ; }
Set the rate types .