Interface CustomerPagedSearchResponse
public interface CustomerPagedSearchResponse
CustomerPagedSearchResponse
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerPagedSearchResponse customerPagedSearchResponse = CustomerPagedSearchResponse.builder()
.total(0.3)
.limit(0.3)
.offset(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerPagedSearchResponsebuilder
(CustomerPagedSearchResponse template) create builder for CustomerPagedSearchResponse instancestatic CustomerPagedSearchResponse
deepCopy
(CustomerPagedSearchResponse template) factory method to create a deep copy of CustomerPagedSearchResponse@NotNull Integer
getLimit()
Number of results requested.@NotNull Integer
Number of elements skipped.@NotNull @Valid List<CustomerSearchResult>
Search result containing the Customers matching the search query.@NotNull Long
getTotal()
Total number of results matching the query.static CustomerPagedSearchResponse
of()
factory methodstatic CustomerPagedSearchResponse
of
(CustomerPagedSearchResponse template) factory method to create a shallow copy CustomerPagedSearchResponsevoid
Number of results requested.void
Number of elements skipped.void
setResults
(CustomerSearchResult... results) Search result containing the Customers matching the search query.void
setResults
(List<CustomerSearchResult> results) Search result containing the Customers matching the search query.void
Total number of results matching the query.static com.fasterxml.jackson.core.type.TypeReference<CustomerPagedSearchResponse>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getTotal
Total number of results matching the query.
- Returns:
- total
-
getLimit
Number of results requested.
- Returns:
- limit
-
getOffset
Number of elements skipped.
- Returns:
- offset
-
getResults
Search result containing the Customers matching the search query.
- Returns:
- results
-
setTotal
Total number of results matching the query.
- Parameters:
total
- value to be set
-
setLimit
Number of results requested.
- Parameters:
limit
- value to be set
-
setOffset
Number of elements skipped.
- Parameters:
offset
- value to be set
-
setResults
Search result containing the Customers matching the search query.
- Parameters:
results
- values to be set
-
setResults
Search result containing the Customers matching the search query.
- Parameters:
results
- values to be set
-
of
factory method- Returns:
- instance of CustomerPagedSearchResponse
-
of
factory method to create a shallow copy CustomerPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerPagedSearchResponse deepCopy(@Nullable CustomerPagedSearchResponse template) factory method to create a deep copy of CustomerPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerPagedSearchResponse- Returns:
- builder
-
builder
create builder for CustomerPagedSearchResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerPagedSearchResponse
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
-