Interface CustomerSearchResult
public interface CustomerSearchResult
CustomerSearchResult
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSearchResult customerSearchResult = CustomerSearchResult.builder()
.id("{id}")
.relevance(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerSearchResultBuilder
builder()
builder factory method for CustomerSearchResultstatic CustomerSearchResultBuilder
builder
(CustomerSearchResult template) create builder for CustomerSearchResult instancestatic CustomerSearchResult
deepCopy
(CustomerSearchResult template) factory method to create a deep copy of CustomerSearchResult@NotNull String
getId()
id
of the Customer matching the search query.@NotNull Double
How closely this customer matches the search query.static CustomerSearchResult
of()
factory methodstatic CustomerSearchResult
of
(CustomerSearchResult template) factory method to create a shallow copy CustomerSearchResultvoid
id
of the Customer matching the search query.void
setRelevance
(Double relevance) How closely this customer matches the search query.static com.fasterxml.jackson.core.type.TypeReference<CustomerSearchResult>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerSearchResult
(Function<CustomerSearchResult, T> helper) accessor map function
-
Method Details
-
getId
id
of the Customer matching the search query.- Returns:
- id
-
getRelevance
How closely this customer matches the search query.
- Returns:
- relevance
-
setId
id
of the Customer matching the search query.- Parameters:
id
- value to be set
-
setRelevance
How closely this customer matches the search query.
- Parameters:
relevance
- value to be set
-
of
factory method- Returns:
- instance of CustomerSearchResult
-
of
factory method to create a shallow copy CustomerSearchResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerSearchResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSearchResult- Returns:
- builder
-
builder
create builder for CustomerSearchResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSearchResult
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
-