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 instancecopyDeep()static CustomerPagedSearchResponsedeepCopy(CustomerPagedSearchResponse template) factory method to create a deep copy of CustomerPagedSearchResponse@NotNull IntegergetLimit()Number of results requested.@NotNull IntegerNumber of elements skipped.@NotNull @Valid List<CustomerSearchResult>Search result containing the Customers matching the search query.@NotNull LonggetTotal()Total number of results matching the query.static CustomerPagedSearchResponseof()factory methodstatic CustomerPagedSearchResponseof(CustomerPagedSearchResponse template) factory method to create a shallow copy CustomerPagedSearchResponsevoidNumber of results requested.voidNumber of elements skipped.voidsetResults(CustomerSearchResult... results) Search result containing the Customers matching the search query.voidsetResults(List<CustomerSearchResult> results) Search result containing the Customers matching the search query.voidTotal number of results matching the query.static com.fasterxml.jackson.core.type.TypeReference<CustomerPagedSearchResponse>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
-
copyDeep
CustomerPagedSearchResponse copyDeep() -
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
-