Package com.collibra.dgc.core.api.dto
Class PagedResponse<T>
Object
PagedResponse<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActivityPagedResponse
,CursorPagedResponse
Response containing the paged information.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
Deprecated.This field will become private in the next major release.protected long
Deprecated.This field will become private in the next major release.protected long
Deprecated.This field will become private in the next major release. -
Constructor Summary
ModifierConstructorDescriptionprotected
PagedResponse
(long total, long offset, long limit, List<T> results) Deprecated.This field will become private in the next major release. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PagedResponse.Builder
<T> builder()
protected boolean
boolean
long
getLimit()
Returns the maximum number of results to be returned.long
Returns the offset for the results.The list of results.long
getTotal()
Returns the total number of results.int
hashCode()
void
setLimit
(long limit) Sets the maximum number of results to be returned.void
setOffset
(long offset) Sets the offset for the results.void
setResults
(List<T> results) The list of results.void
setTotal
(long total) Sets the total number of results.toString()
-
Field Details
-
total
Deprecated.This field will become private in the next major release. MethodsgetTotal()
,setTotal(long)
should be used instead.The total number of results. -
offset
Deprecated.This field will become private in the next major release. MethodsgetOffset()
,setOffset(long)
should be used instead.The offset for the results. -
limit
Deprecated.This field will become private in the next major release. MethodsgetLimit()
,setLimit(long)
should be used instead.The maximum number of results to be returned.
-
-
Constructor Details
-
PagedResponse
public PagedResponse() -
PagedResponse
Deprecated.This field will become private in the next major release. MethodsgetTotal()
,setTotal(long)
should be used instead.Creates a newPagedResponse
instance.- Parameters:
total
- The total number of results.offset
- The offset for the results.limit
- The maximum number of results to be returned.results
- The list of results.
-
-
Method Details
-
getOffset
public long getOffset()Returns the offset for the results.- Returns:
- the offset for the results
-
setOffset
public void setOffset(long offset) Sets the offset for the results.- Parameters:
offset
- the offset for the results
-
getLimit
public long getLimit()Returns the maximum number of results to be returned.- Returns:
- the maximum number of results to be returned
-
setLimit
public void setLimit(long limit) Sets the maximum number of results to be returned.- Parameters:
limit
- the maximum number of results to be returned
-
getTotal
public long getTotal()Returns the total number of results.- Returns:
- the total number of results
-
setTotal
public void setTotal(long total) Sets the total number of results.- Parameters:
total
- the total number of results
-
builder
-
getResults
The list of results. -
setResults
The list of results. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-