Class NumberSetFieldBuilder

java.lang.Object
com.commercetools.importapi.models.customfields.NumberSetFieldBuilder
All Implemented Interfaces:
Builder<NumberSetField>

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

     NumberSetField numberSetField = NumberSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

    • NumberSetFieldBuilder

      public NumberSetFieldBuilder()
  • Method Details

    • value

      public NumberSetFieldBuilder value(Double... value)
      set values to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • value

      public NumberSetFieldBuilder value(List<Double> value)
      set value to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • plusValue

      public NumberSetFieldBuilder plusValue(Double... value)
      add values to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • getValue

      public List<Double> getValue()
      value of value}
      Returns:
      value
    • build

      public NumberSetField build()
      builds NumberSetField with checking for non-null required values
      Specified by:
      build in interface Builder<NumberSetField>
      Returns:
      NumberSetField
    • buildUnchecked

      public NumberSetField buildUnchecked()
      builds NumberSetField without checking for non-null required values
      Returns:
      NumberSetField
    • of

      public static NumberSetFieldBuilder of()
      factory method for an instance of NumberSetFieldBuilder
      Returns:
      builder
    • of

      public static NumberSetFieldBuilder of(NumberSetField template)
      create builder for NumberSetField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder