Interface FacetTerm
- All Known Subinterfaces:
FacetResultTerm
public interface FacetTerm
FacetTerm
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FacetTerm facetTerm = FacetTerm.builder()
.count(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic FacetTermBuilder
builder()
builder factory method for FacetTermstatic FacetTermBuilder
create builder for FacetTerm instancestatic FacetTerm
factory method to create a deep copy of FacetTerm@NotNull Long
getCount()
@NotNull Object
getTerm()
static FacetTerm
of()
factory methodstatic FacetTerm
factory method to create a shallow copy FacetTermvoid
set countvoid
setProductCount
(Long productCount) set productCountvoid
set termstatic com.fasterxml.jackson.core.type.TypeReference<FacetTerm>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withFacetTerm
(Function<FacetTerm, T> helper) accessor map function
-
Method Details
-
getTerm
- Returns:
- term
-
getCount
- Returns:
- count
-
getProductCount
Long getProductCount()- Returns:
- productCount
-
setTerm
set term- Parameters:
term
- value to be set
-
setCount
set count- Parameters:
count
- value to be set
-
setProductCount
set productCount- Parameters:
productCount
- value to be set
-
of
factory method- Returns:
- instance of FacetTerm
-
of
factory method to create a shallow copy FacetTerm- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of FacetTerm- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for FacetTerm- Returns:
- builder
-
builder
create builder for FacetTerm instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withFacetTerm
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
-