Interface TermFacetResult
- All Superinterfaces:
FacetResult
TermFacetResult
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TermFacetResult termFacetResult = TermFacetResult.builder()
.dataType(TermFacetResultType.TEXT)
.missing(0.3)
.total(0.3)
.other(0.3)
.plusTerms(termsBuilder -> termsBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TermFacetResultBuilder
builder()
builder factory method for TermFacetResultstatic TermFacetResultBuilder
builder
(TermFacetResult template) create builder for TermFacetResult instancestatic TermFacetResult
deepCopy
(TermFacetResult template) factory method to create a deep copy of TermFacetResult@NotNull TermFacetResultType
@NotNull Long
@NotNull Long
getOther()
getTerms()
@NotNull Long
getTotal()
static TermFacetResult
of()
factory methodstatic TermFacetResult
of
(TermFacetResult template) factory method to create a shallow copy TermFacetResultvoid
setDataType
(TermFacetResultType dataType) set dataTypevoid
setMissing
(Long missing) set missingvoid
set othervoid
set termsvoid
set termsvoid
set totalstatic com.fasterxml.jackson.core.type.TypeReference<TermFacetResult>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTermFacetResult
(Function<TermFacetResult, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.FacetResult
getType, withFacetResult
-
Field Details
-
TERMS
discriminator value for TermFacetResult- See Also:
-
-
Method Details
-
getDataType
- Returns:
- dataType
-
getMissing
- Returns:
- missing
-
getTotal
- Returns:
- total
-
getOther
- Returns:
- other
-
getTerms
- Returns:
- terms
-
setDataType
set dataType- Parameters:
dataType
- value to be set
-
setMissing
set missing- Parameters:
missing
- value to be set
-
setTotal
set total- Parameters:
total
- value to be set
-
setOther
set other- Parameters:
other
- value to be set
-
setTerms
set terms- Parameters:
terms
- values to be set
-
setTerms
set terms- Parameters:
terms
- values to be set
-
of
factory method- Returns:
- instance of TermFacetResult
-
of
factory method to create a shallow copy TermFacetResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TermFacetResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TermFacetResult- Returns:
- builder
-
builder
create builder for TermFacetResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTermFacetResult
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
-