Record Class AlfrescoPagedResponse.Pagination
java.lang.Object
java.lang.Record
org.alfresco.hxi_connector.nucleus_sync.dto.AlfrescoPagedResponse.Pagination
- Enclosing class:
- AlfrescoPagedResponse<T>
public static record AlfrescoPagedResponse.Pagination(int count, boolean hasMoreItems, int totalItems, int skipCount, int maxItems)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPagination(int count, boolean hasMoreItems, int totalItems, int skipCount, int maxItems) Creates an instance of aPaginationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasMoreItemsrecord component.intmaxItems()Returns the value of themaxItemsrecord component.intReturns the value of theskipCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalItemsrecord component.
-
Constructor Details
-
Pagination
public Pagination(int count, boolean hasMoreItems, int totalItems, int skipCount, int maxItems) Creates an instance of aPaginationrecord class.- Parameters:
count- the value for thecountrecord componenthasMoreItems- the value for thehasMoreItemsrecord componenttotalItems- the value for thetotalItemsrecord componentskipCount- the value for theskipCountrecord componentmaxItems- the value for themaxItemsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
hasMoreItems
public boolean hasMoreItems()Returns the value of thehasMoreItemsrecord component.- Returns:
- the value of the
hasMoreItemsrecord component
-
totalItems
public int totalItems()Returns the value of thetotalItemsrecord component.- Returns:
- the value of the
totalItemsrecord component
-
skipCount
public int skipCount()Returns the value of theskipCountrecord component.- Returns:
- the value of the
skipCountrecord component
-
maxItems
public int maxItems()Returns the value of themaxItemsrecord component.- Returns:
- the value of the
maxItemsrecord component
-