Interface FacetRange
- All Known Subinterfaces:
FacetResultRange
public interface FacetRange
FacetRange
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FacetRange facetRange = FacetRange.builder()
.from(0.3)
.fromStr("{fromStr}")
.to(0.3)
.toStr("{toStr}")
.count(0.3)
.total(0.3)
.min(0.3)
.max(0.3)
.mean(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic FacetRangeBuilder
builder()
builder factory method for FacetRangestatic FacetRangeBuilder
builder
(FacetRange template) create builder for FacetRange instancestatic FacetRange
deepCopy
(FacetRange template) factory method to create a deep copy of FacetRange@NotNull Long
getCount()
@NotNull Double
getFrom()
@NotNull String
@NotNull Double
getMax()
@NotNull Double
getMean()
@NotNull Double
getMin()
@NotNull Double
getTo()
@NotNull String
getToStr()
@NotNull Double
getTotal()
static FacetRange
of()
factory methodstatic FacetRange
of
(FacetRange template) factory method to create a shallow copy FacetRangevoid
set countvoid
set fromvoid
setFromStr
(String fromStr) set fromStrvoid
set maxvoid
set meanvoid
set minvoid
setProductCount
(Long productCount) set productCountvoid
set tovoid
set toStrvoid
set totalstatic com.fasterxml.jackson.core.type.TypeReference<FacetRange>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withFacetRange
(Function<FacetRange, T> helper) accessor map function
-
Method Details
-
getFrom
- Returns:
- from
-
getFromStr
- Returns:
- fromStr
-
getTo
- Returns:
- to
-
getToStr
- Returns:
- toStr
-
getCount
- Returns:
- count
-
getProductCount
Long getProductCount()- Returns:
- productCount
-
getTotal
- Returns:
- total
-
getMin
- Returns:
- min
-
getMax
- Returns:
- max
-
getMean
- Returns:
- mean
-
setFrom
set from- Parameters:
from
- value to be set
-
setFromStr
set fromStr- Parameters:
fromStr
- value to be set
-
setTo
set to- Parameters:
to
- value to be set
-
setToStr
set toStr- Parameters:
toStr
- value to be set
-
setCount
set count- Parameters:
count
- value to be set
-
setProductCount
set productCount- Parameters:
productCount
- value to be set
-
setTotal
set total- Parameters:
total
- value to be set
-
setMin
set min- Parameters:
min
- value to be set
-
setMax
set max- Parameters:
max
- value to be set
-
setMean
set mean- Parameters:
mean
- value to be set
-
of
factory method- Returns:
- instance of FacetRange
-
of
factory method to create a shallow copy FacetRange- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of FacetRange- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for FacetRange- Returns:
- builder
-
builder
create builder for FacetRange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withFacetRange
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
-