Interface OrderEditApply


public interface OrderEditApply

If the editVersion and/or resourceVersion do not match the actual version, a ConcurrentModification error will be returned.


Example to create an instance using the builder pattern

     OrderEditApply orderEditApply = OrderEditApply.builder()
             .editVersion(0.3)
             .resourceVersion(0.3)
             .build()
 
  • Method Details

    • getEditVersion

      @NotNull @NotNull Long getEditVersion()

      Current version of the OrderEdit to be applied.

      Returns:
      editVersion
    • getResourceVersion

      @NotNull @NotNull Long getResourceVersion()

      Current version of the Order to which the OrderEdit is applied.

      Returns:
      resourceVersion
    • setEditVersion

      void setEditVersion(Long editVersion)

      Current version of the OrderEdit to be applied.

      Parameters:
      editVersion - value to be set
    • setResourceVersion

      void setResourceVersion(Long resourceVersion)

      Current version of the Order to which the OrderEdit is applied.

      Parameters:
      resourceVersion - value to be set
    • of

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

      static OrderEditApply of(OrderEditApply template)
      factory method to create a shallow copy OrderEditApply
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static OrderEditApplyBuilder builder()
      builder factory method for OrderEditApply
      Returns:
      builder
    • builder

      static OrderEditApplyBuilder builder(OrderEditApply template)
      create builder for OrderEditApply instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderEditApply

      default <T> T withOrderEditApply(Function<OrderEditApply,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<OrderEditApply> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference