public interface CustomerPagedQueryResponse extends ResourcePagedQueryResponse<Customer>
Modifier and Type | Method and Description |
---|---|
static CustomerPagedQueryResponseBuilder |
builder() |
static CustomerPagedQueryResponseBuilder |
builder(CustomerPagedQueryResponse template) |
@NotNull Long |
getCount() |
@NotNull Long |
getLimit() |
@NotNull Long |
getOffset() |
@NotNull @Valid List<Customer> |
getResults() |
Long |
getTotal() |
static CustomerPagedQueryResponse |
of() |
static CustomerPagedQueryResponse |
of(CustomerPagedQueryResponse template) |
void |
setCount(Long count) |
void |
setLimit(Long limit) |
void |
setOffset(Long offset) |
void |
setResults(Customer... results) |
void |
setResults(List<Customer> results) |
void |
setTotal(Long total) |
default <T> T |
withCustomerPagedQueryResponse(Function<CustomerPagedQueryResponse,T> helper) |
@NotNull @NotNull Long getLimit()
getLimit
in interface ResourcePagedQueryResponse<Customer>
@NotNull @NotNull Long getCount()
getCount
in interface ResourcePagedQueryResponse<Customer>
Long getTotal()
getTotal
in interface ResourcePagedQueryResponse<Customer>
@NotNull @NotNull Long getOffset()
getOffset
in interface ResourcePagedQueryResponse<Customer>
@NotNull @Valid @NotNull @Valid List<Customer> getResults()
getResults
in interface ResourcePagedQueryResponse<Customer>
void setLimit(Long limit)
void setCount(Long count)
void setTotal(Long total)
void setOffset(Long offset)
void setResults(Customer... results)
static CustomerPagedQueryResponse of()
static CustomerPagedQueryResponse of(CustomerPagedQueryResponse template)
static CustomerPagedQueryResponseBuilder builder()
static CustomerPagedQueryResponseBuilder builder(CustomerPagedQueryResponse template)
default <T> T withCustomerPagedQueryResponse(Function<CustomerPagedQueryResponse,T> helper)