Record Class ForumTopicRenderer.TopicPagination
java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.forum.topics.ForumTopicRenderer.TopicPagination
- Enclosing class:
ForumTopicRenderer<TOPIC extends ForumTopicData, CTX>
-
Constructor Summary
ConstructorsConstructorDescriptionTopicPagination(String scopeId, int page, int topicsPerPage, int totalTopics) Creates an instance of aTopicPaginationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasNext()booleanintpage()Returns the value of thepagerecord component.scopeId()Returns the value of thescopeIdrecord component.intReturns the value of thetopicsPerPagerecord component.final StringtoString()Returns a string representation of this record class.intintReturns the value of thetotalTopicsrecord component.
-
Constructor Details
-
TopicPagination
Creates an instance of aTopicPaginationrecord class.- Parameters:
scopeId- the value for thescopeIdrecord componentpage- the value for thepagerecord componenttopicsPerPage- the value for thetopicsPerPagerecord componenttotalTopics- the value for thetotalTopicsrecord component
-
-
Method Details
-
totalPages
public int totalPages() -
currentPage
public int currentPage() -
hasPrevious
public boolean hasPrevious() -
hasNext
public boolean hasNext() -
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. -
scopeId
Returns the value of thescopeIdrecord component.- Returns:
- the value of the
scopeIdrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
topicsPerPage
public int topicsPerPage()Returns the value of thetopicsPerPagerecord component.- Returns:
- the value of the
topicsPerPagerecord component
-
totalTopics
public int totalTopics()Returns the value of thetotalTopicsrecord component.- Returns:
- the value of the
totalTopicsrecord component
-