Record Class GuiPageContext
java.lang.Object
java.lang.Record
com.render.api.gui.pagination.GuiPageContext
- Record Components:
pageIndex- zero-based page indexpageCount- total page counttemplateName- selected page template
-
Constructor Summary
ConstructorsConstructorDescriptionGuiPageContext(int pageIndex, int pageCount, String templateName) Creates an instance of aGuiPageContextrecord 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.intReturns the value of thepageCountrecord component.intReturns the value of thepageIndexrecord component.intReturns the value of thetemplateNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiPageContext
Creates an instance of aGuiPageContextrecord class.- Parameters:
pageIndex- the value for thepageIndexrecord componentpageCount- the value for thepageCountrecord componenttemplateName- the value for thetemplateNamerecord component
-
-
Method Details
-
pageNumber
public int pageNumber() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pageIndex
-
pageCount
-
templateName
Returns the value of thetemplateNamerecord component.- Returns:
- the value of the
templateNamerecord component
-