Record Class ForumCommentRenderer.CommentPagination
java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.forum.comments.ForumCommentRenderer.CommentPagination
- Enclosing class:
ForumCommentRenderer<COMMENT extends ForumCommentData, CTX>
-
Constructor Summary
ConstructorsConstructorDescriptionCommentPagination(String topicId, int page, int commentsPerPage, int totalComments) Creates an instance of aCommentPaginationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecommentsPerPagerecord component.intfinal 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.topicId()Returns the value of thetopicIdrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCommentsrecord component.int
-
Constructor Details
-
CommentPagination
Creates an instance of aCommentPaginationrecord class.- Parameters:
topicId- the value for thetopicIdrecord componentpage- the value for thepagerecord componentcommentsPerPage- the value for thecommentsPerPagerecord componenttotalComments- the value for thetotalCommentsrecord 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. -
topicId
Returns the value of thetopicIdrecord component.- Returns:
- the value of the
topicIdrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
commentsPerPage
public int commentsPerPage()Returns the value of thecommentsPerPagerecord component.- Returns:
- the value of the
commentsPerPagerecord component
-
totalComments
public int totalComments()Returns the value of thetotalCommentsrecord component.- Returns:
- the value of the
totalCommentsrecord component
-