Interface PatternComponent
- All Known Subinterfaces:
CountOnCustomLineItemUnits,CountOnLineItemUnits
public interface PatternComponent
The pattern component it used to define a set of units based on some criteria. The criteria depends on the type of component used.
Example to create a subtype instance using the builder pattern
PatternComponent patternComponent = PatternComponent.countOnCustomLineItemUnitsBuilder()
predicate("{predicate}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptioncopyDeep()builder for countOnCustomLineItemUnits subtypestatic CountOnLineItemUnitsBuilderbuilder for countOnLineItemUnits subtypestatic PatternComponentdeepCopy(PatternComponent template) factory method to create a deep copy of PatternComponent@NotNull StringgetType()static com.fasterxml.jackson.core.type.TypeReference<PatternComponent>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPatternComponent(Function<PatternComponent, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
copyDeep
PatternComponent copyDeep() -
deepCopy
factory method to create a deep copy of PatternComponent- Parameters:
template- instance to be copied- Returns:
- copy instance
-
countOnCustomLineItemUnitsBuilder
builder for countOnCustomLineItemUnits subtype- Returns:
- builder
-
countOnLineItemUnitsBuilder
builder for countOnLineItemUnits subtype- Returns:
- builder
-
withPatternComponent
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
-