Interface OrderPagedSearchResponse
public interface OrderPagedSearchResponse
OrderPagedSearchResponse
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderPagedSearchResponse orderPagedSearchResponse = OrderPagedSearchResponse.builder()
.total(0.3)
.plusHits(hitsBuilder -> hitsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderPagedSearchResponsebuilder
(OrderPagedSearchResponse template) create builder for OrderPagedSearchResponse instancestatic OrderPagedSearchResponse
deepCopy
(OrderPagedSearchResponse template) factory method to create a deep copy of OrderPagedSearchResponsegetHits()
Actual results.getLimit()
Number of results requested.Number of elements skipped.@NotNull Long
getTotal()
Total number of results matching the query.static OrderPagedSearchResponse
of()
factory methodstatic OrderPagedSearchResponse
of
(OrderPagedSearchResponse template) factory method to create a shallow copy OrderPagedSearchResponsevoid
Actual results.void
Actual results.void
Number of results requested.void
Number of elements skipped.void
Total number of results matching the query.static com.fasterxml.jackson.core.type.TypeReference<OrderPagedSearchResponse>
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
-
getOffset
Long getOffset()Number of elements skipped.
- Returns:
- offset
-
getLimit
Long getLimit()Number of results requested.
- Returns:
- limit
-
getHits
Actual results.
- Returns:
- hits
-
setTotal
Total number of results matching the query.
- Parameters:
total
- value to be set
-
setOffset
Number of elements skipped.
- Parameters:
offset
- value to be set
-
setLimit
Number of results requested.
- Parameters:
limit
- value to be set
-
setHits
Actual results.
- Parameters:
hits
- values to be set
-
setHits
Actual results.
- Parameters:
hits
- values to be set
-
of
factory method- Returns:
- instance of OrderPagedSearchResponse
-
of
factory method to create a shallow copy OrderPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderPagedSearchResponse- Returns:
- builder
-
builder
create builder for OrderPagedSearchResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderPagedSearchResponse
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
-