Class TermFacetResultBuilder

java.lang.Object
com.commercetools.api.models.product.TermFacetResultBuilder
All Implemented Interfaces:
Builder<TermFacetResult>

public class TermFacetResultBuilder extends Object implements Builder<TermFacetResult>
TermFacetResultBuilder
Example to create an instance using the builder pattern

     TermFacetResult termFacetResult = TermFacetResult.builder()
             .dataType(TermFacetResultType.TEXT)
             .missing(0.3)
             .total(0.3)
             .other(0.3)
             .plusTerms(termsBuilder -> termsBuilder)
             .build()
 
  • Constructor Details

    • TermFacetResultBuilder

      public TermFacetResultBuilder()
  • Method Details