Record Class Pagination
java.lang.Object
java.lang.Record
org.hibernate.dialect.testing.Pagination
-
Constructor Summary
ConstructorsConstructorDescriptionPagination(int firstResult, int maxResults) Creates an instance of aPaginationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstResultrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxResultsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Pagination
public Pagination(int firstResult, int maxResults) Creates an instance of aPaginationrecord class.- Parameters:
firstResult- the value for thefirstResultrecord componentmaxResults- the value for themaxResultsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
firstResult
public int firstResult()Returns the value of thefirstResultrecord component.- Returns:
- the value of the
firstResultrecord component
-
maxResults
public int maxResults()Returns the value of themaxResultsrecord component.- Returns:
- the value of the
maxResultsrecord component
-