Package ai.mindconnect.common
Record Class PageRequest
java.lang.Object
java.lang.Record
ai.mindconnect.common.PageRequest
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPageRequest(int page, int size) Creates an instance of aPageRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoffset()intpage()Returns the value of thepagerecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
PageRequest
public PageRequest(int page, int size) Creates an instance of aPageRequestrecord class.- Parameters:
page- the value for thepagerecord componentsize- the value for thesizerecord component
-
-
Method Details
-
offset
public int offset() -
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 '=='. -
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-