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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longDeprecated.This field will become private in the next major release.protected longDeprecated.This field will become private in the next major release.protected longDeprecated.This field will become private in the next major release. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPagedResponse(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 booleanbooleanlonggetLimit()Returns the maximum number of results to be returned.longReturns the offset for the results.The list of results.longgetTotal()Returns the total number of results.inthashCode()voidsetLimit(long limit) Sets the maximum number of results to be returned.voidsetOffset(long offset) Sets the offset for the results.voidsetResults(List<T> results) The list of results.voidsetTotal(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 newPagedResponseinstance.- 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
-