Class StackingBuilder

java.lang.Object
com.commercetools.api.models.cart.StackingBuilder
All Implemented Interfaces:
Builder<Stacking>

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

     Stacking stacking = Stacking.builder()
             .build()
 
  • Constructor Details

    • StackingBuilder

      public StackingBuilder()
  • Method Details

    • build

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

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

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

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