Interface ProductDiscountValue


public interface ProductDiscountValue
ProductDiscountValue
Example to create an instance using the builder pattern

     ProductDiscountValue productDiscountValue = ProductDiscountValue.builder()
             .type("{type}")
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • setType

      void setType(String type)
      set type
      Parameters:
      type - value to be set
    • of

      static ProductDiscountValue of()
      factory method
      Returns:
      instance of ProductDiscountValue
    • of

      factory method to create a shallow copy ProductDiscountValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

    • deepCopy

      @Nullable static ProductDiscountValue deepCopy(@Nullable ProductDiscountValue template)
      factory method to create a deep copy of ProductDiscountValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ProductDiscountValueBuilder builder()
      builder factory method for ProductDiscountValue
      Returns:
      builder
    • builder

      create builder for ProductDiscountValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductDiscountValue

      default <T> T withProductDiscountValue(Function<ProductDiscountValue,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountValue> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference