Interface TextLineItem
public interface TextLineItem
TextLineItem
Example to create an instance using the builder pattern
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 Summary
Modifier and TypeMethodDescriptionstatic TextLineItemBuilderbuilder()builder factory method for TextLineItemstatic TextLineItemBuilderbuilder(TextLineItem template) create builder for TextLineItem instancecopyDeep()static TextLineItemdeepCopy(TextLineItem template) factory method to create a deep copy of TextLineItem@NotNull String@NotNull @Valid CustomFields@NotNull @Valid LocalizedString@NotNull StringgetId()@NotNull @Valid LocalizedStringgetName()@NotNull Integerstatic TextLineItemof()factory methodstatic TextLineItemof(TextLineItem template) factory method to create a shallow copy TextLineItemvoidsetAddedAt(String addedAt) set addedAtvoidsetCustom(CustomFields custom) set customvoidsetDescription(LocalizedString description) set descriptionvoidset idvoidsetName(LocalizedString name) set namevoidsetQuantity(Integer quantity) set quantitystatic com.fasterxml.jackson.core.type.TypeReference<TextLineItem>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTextLineItem(Function<TextLineItem, T> helper) accessor map function
-
Method Details
-
getAddedAt
- Returns:
- addedAt
-
getCustom
- Returns:
- custom
-
getDescription
- Returns:
- description
-
getId
- Returns:
- id
-
getName
- Returns:
- name
-
getQuantity
- Returns:
- quantity
-
setAddedAt
set addedAt- Parameters:
addedAt- value to be set
-
setCustom
set custom- Parameters:
custom- value to be set
-
setDescription
set description- Parameters:
description- value to be set
-
setId
set id- Parameters:
id- value to be set
-
setName
set name- Parameters:
name- value to be set
-
setQuantity
set quantity- Parameters:
quantity- value to be set
-
of
factory method- Returns:
- instance of TextLineItem
-
of
factory method to create a shallow copy TextLineItem- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TextLineItem copyDeep() -
deepCopy
factory method to create a deep copy of TextLineItem- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TextLineItem- Returns:
- builder
-
builder
create builder for TextLineItem instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTextLineItem
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-