Package cloud.quasarch.akash.impl.model
Record Class PageByOffset
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.PageByOffset
- Record Components:
currentPage- the page we askresultPerPage- how many results per page
Represents a page request which is done based on a page number + results per page.
Prefer
PageByKey when available-
Constructor Summary
ConstructorsConstructorDescriptionPageByOffset(short currentPage, short resultPerPage) Creates an instance of aPageByOffsetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionshortReturns the value of thecurrentPagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.shortReturns the value of theresultPerPagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PageByOffset
public PageByOffset(short currentPage, short resultPerPage) Creates an instance of aPageByOffsetrecord class.- Parameters:
currentPage- the value for thecurrentPagerecord componentresultPerPage- the value for theresultPerPagerecord 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 '=='. -
currentPage
public short currentPage()Returns the value of thecurrentPagerecord component.- Returns:
- the value of the
currentPagerecord component
-
resultPerPage
public short resultPerPage()Returns the value of theresultPerPagerecord component.- Returns:
- the value of the
resultPerPagerecord component
-