Interface TextLineItem


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

     TextLineItem textLineItem = TextLineItem.builder()
             .addedAt("{addedAt}")
             .custom(customBuilder -> customBuilder)
             .description(descriptionBuilder -> descriptionBuilder)
             .id("{id}")
             .name(nameBuilder -> nameBuilder)
             .quantity(1)
             .build()
 
  • Method Details

    • getAddedAt

      @NotNull @NotNull String getAddedAt()
      Returns:
      addedAt
    • getCustom

      @NotNull @Valid @NotNull @Valid CustomFields getCustom()
      Returns:
      custom
    • getDescription

      @NotNull @Valid @NotNull @Valid LocalizedString getDescription()
      Returns:
      description
    • getId

      @NotNull @NotNull String getId()
      Returns:
      id
    • getName

      @NotNull @Valid @NotNull @Valid LocalizedString getName()
      Returns:
      name
    • getQuantity

      @NotNull @NotNull Integer getQuantity()
      Returns:
      quantity
    • setAddedAt

      void setAddedAt(String addedAt)
      set addedAt
      Parameters:
      addedAt - value to be set
    • setCustom

      void setCustom(CustomFields custom)
      set custom
      Parameters:
      custom - value to be set
    • setDescription

      void setDescription(LocalizedString description)
      set description
      Parameters:
      description - value to be set
    • setId

      void setId(String id)
      set id
      Parameters:
      id - value to be set
    • setName

      void setName(LocalizedString name)
      set name
      Parameters:
      name - value to be set
    • setQuantity

      void setQuantity(Integer quantity)
      set quantity
      Parameters:
      quantity - value to be set
    • of

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

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

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

      static TextLineItemBuilder builder()
      builder factory method for TextLineItem
      Returns:
      builder
    • builder

      static TextLineItemBuilder builder(TextLineItem template)
      create builder for TextLineItem instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTextLineItem

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