Package com.easydesk.web.service
Record Class MailReportService.MailPage
java.lang.Object
java.lang.Record
com.easydesk.web.service.MailReportService.MailPage
- Enclosing class:
MailReportService
public static record MailReportService.MailPage(MailReportService.Box box, String folderName, List<MailReportService.MailSummary> mails, int unreadCount, int current, int totalPages, int totalRecords, int firstRecordNo, int lastRecordNo, List<Integer> pageNumbers)
extends Record
메일함 한 페이지. 페이지 / 레코드 번호는 1 부터 시작한다 (module-items-list 의 PageInfo 와 같은 규칙).
-
Constructor Summary
ConstructorsConstructorDescriptionMailPage(MailReportService.Box box, String folderName, List<MailReportService.MailSummary> mails, int unreadCount, int current, int totalPages, int totalRecords, int firstRecordNo, int lastRecordNo, List<Integer> pageNumbers) Creates an instance of aMailPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbox()Returns the value of theboxrecord component.intcurrent()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstRecordNorecord component.Returns the value of thefolderNamerecord component.final inthashCode()Returns a hash code value for this object.booleanhasNext()booleanintReturns the value of thelastRecordNorecord component.mails()Returns the value of themailsrecord component.Returns the value of thepageNumbersrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalPagesrecord component.intReturns the value of thetotalRecordsrecord component.intReturns the value of theunreadCountrecord component.
-
Constructor Details
-
MailPage
public MailPage(MailReportService.Box box, String folderName, List<MailReportService.MailSummary> mails, int unreadCount, int current, int totalPages, int totalRecords, int firstRecordNo, int lastRecordNo, List<Integer> pageNumbers) Creates an instance of aMailPagerecord class.- Parameters:
box- the value for theboxrecord componentfolderName- the value for thefolderNamerecord componentmails- the value for themailsrecord componentunreadCount- the value for theunreadCountrecord componentcurrent- the value for thecurrentrecord componenttotalPages- the value for thetotalPagesrecord componenttotalRecords- the value for thetotalRecordsrecord componentfirstRecordNo- the value for thefirstRecordNorecord componentlastRecordNo- the value for thelastRecordNorecord componentpageNumbers- the value for thepageNumbersrecord component
-
-
Method Details
-
hasPrevious
public boolean hasPrevious() -
hasNext
public boolean hasNext() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
box
Returns the value of theboxrecord component.- Returns:
- the value of the
boxrecord component
-
folderName
Returns the value of thefolderNamerecord component.- Returns:
- the value of the
folderNamerecord component
-
mails
Returns the value of themailsrecord component.- Returns:
- the value of the
mailsrecord component
-
unreadCount
public int unreadCount()Returns the value of theunreadCountrecord component.- Returns:
- the value of the
unreadCountrecord component
-
current
public int current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
totalPages
public int totalPages()Returns the value of thetotalPagesrecord component.- Returns:
- the value of the
totalPagesrecord component
-
totalRecords
public int totalRecords()Returns the value of thetotalRecordsrecord component.- Returns:
- the value of the
totalRecordsrecord component
-
firstRecordNo
public int firstRecordNo()Returns the value of thefirstRecordNorecord component.- Returns:
- the value of the
firstRecordNorecord component
-
lastRecordNo
public int lastRecordNo()Returns the value of thelastRecordNorecord component.- Returns:
- the value of the
lastRecordNorecord component
-
pageNumbers
Returns the value of thepageNumbersrecord component.- Returns:
- the value of the
pageNumbersrecord component
-