Class StatePagedQueryResponseImpl
- All Implemented Interfaces:
ResourcePagedQueryResponse<State>
,StatePagedQueryResponse
,io.vrap.rmf.base.client.ModelBase
PagedQueryResult with results
containing an array of State.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCount()
Actual number of results returned.getLimit()
Number of results requested.Number of elements skipped.States matching the query.getTotal()
Total number of results matching the query.int
hashCode()
void
Actual number of results returned.void
Number of results requested.void
Number of elements skipped.void
setResults
(State... results) States matching the query.void
setResults
(List<State> results) States matching the query.void
Total number of results matching the query.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourcePagedQueryResponse
getPageIndex, getTotalPages, head, isFirst, isLast
Methods inherited from interface com.commercetools.api.models.state.StatePagedQueryResponse
withStatePagedQueryResponse
-
Constructor Details
-
StatePagedQueryResponseImpl
public StatePagedQueryResponseImpl()create empty instance
-
-
Method Details
-
getLimit
Number of results requested.
- Specified by:
getLimit
in interfaceResourcePagedQueryResponse<State>
- Specified by:
getLimit
in interfaceStatePagedQueryResponse
- Returns:
- limit
-
getOffset
Number of elements skipped.
- Specified by:
getOffset
in interfaceResourcePagedQueryResponse<State>
- Specified by:
getOffset
in interfaceStatePagedQueryResponse
- Returns:
- offset
-
getCount
Actual number of results returned.
- Specified by:
getCount
in interfaceResourcePagedQueryResponse<State>
- Specified by:
getCount
in interfaceStatePagedQueryResponse
- Returns:
- count
-
getTotal
Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter
withTotal=false
. When the results are filtered with a Query Predicate,total
is subject to a limit.- Specified by:
getTotal
in interfaceResourcePagedQueryResponse<State>
- Specified by:
getTotal
in interfaceStatePagedQueryResponse
- Returns:
- total
-
getResults
States matching the query.
- Specified by:
getResults
in interfaceResourcePagedQueryResponse<State>
- Specified by:
getResults
in interfaceStatePagedQueryResponse
- Returns:
- results
-
setLimit
Description copied from interface:StatePagedQueryResponse
Number of results requested.
- Specified by:
setLimit
in interfaceStatePagedQueryResponse
- Parameters:
limit
- value to be set
-
setOffset
Description copied from interface:StatePagedQueryResponse
Number of elements skipped.
- Specified by:
setOffset
in interfaceStatePagedQueryResponse
- Parameters:
offset
- value to be set
-
setCount
Description copied from interface:StatePagedQueryResponse
Actual number of results returned.
- Specified by:
setCount
in interfaceStatePagedQueryResponse
- Parameters:
count
- value to be set
-
setTotal
Description copied from interface:StatePagedQueryResponse
Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter
withTotal=false
. When the results are filtered with a Query Predicate,total
is subject to a limit.- Specified by:
setTotal
in interfaceStatePagedQueryResponse
- Parameters:
total
- value to be set
-
setResults
Description copied from interface:StatePagedQueryResponse
States matching the query.
- Specified by:
setResults
in interfaceStatePagedQueryResponse
- Parameters:
results
- values to be set
-
setResults
Description copied from interface:StatePagedQueryResponse
States matching the query.
- Specified by:
setResults
in interfaceStatePagedQueryResponse
- Parameters:
results
- values to be set
-
equals
-
hashCode
public int hashCode()
-