Interface FacetResults
public interface FacetResults
FacetResults
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FacetResults facetResults = FacetResults.builder()
./^[a-z].*$/(/^[a-z].*$/Builder -> /^[a-z].*$/Builder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic FacetResultsBuilder
builder()
builder factory method for FacetResultsstatic FacetResultsBuilder
builder
(FacetResults template) create builder for FacetResults instancestatic FacetResults
deepCopy
(FacetResults template) factory method to create a deep copy of FacetResultsstatic FacetResults
of()
factory methodstatic FacetResults
of
(FacetResults template) factory method to create a shallow copy FacetResultsvoid
setValue
(String key, FacetResult value) set pattern propertystatic com.fasterxml.jackson.core.type.TypeReference<FacetResults>
gives a TypeReference for usage with Jackson DataBind@NotNull @Valid Map<String,
FacetResult> values()
default <T> T
withFacetResults
(Function<FacetResults, T> helper) accessor map function
-
Method Details
-
values
- Returns:
- map of the pattern property values
-
setValue
set pattern property- Parameters:
key
- property namevalue
- property value
-
of
factory method- Returns:
- instance of FacetResults
-
of
factory method to create a shallow copy FacetResults- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of FacetResults- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for FacetResults- Returns:
- builder
-
builder
create builder for FacetResults instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withFacetResults
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
-