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 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 a MailPage record class.
      Parameters:
      box - the value for the box record component
      folderName - the value for the folderName record component
      mails - the value for the mails record component
      unreadCount - the value for the unreadCount record component
      current - the value for the current record component
      totalPages - the value for the totalPages record component
      totalRecords - the value for the totalRecords record component
      firstRecordNo - the value for the firstRecordNo record component
      lastRecordNo - the value for the lastRecordNo record component
      pageNumbers - the value for the pageNumbers record component
  • Method Details

    • hasPrevious

      public boolean hasPrevious()
    • hasNext

      public boolean hasNext()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • box

      public MailReportService.Box box()
      Returns the value of the box record component.
      Returns:
      the value of the box record component
    • folderName

      public String folderName()
      Returns the value of the folderName record component.
      Returns:
      the value of the folderName record component
    • mails

      Returns the value of the mails record component.
      Returns:
      the value of the mails record component
    • unreadCount

      public int unreadCount()
      Returns the value of the unreadCount record component.
      Returns:
      the value of the unreadCount record component
    • current

      public int current()
      Returns the value of the current record component.
      Returns:
      the value of the current record component
    • totalPages

      public int totalPages()
      Returns the value of the totalPages record component.
      Returns:
      the value of the totalPages record component
    • totalRecords

      public int totalRecords()
      Returns the value of the totalRecords record component.
      Returns:
      the value of the totalRecords record component
    • firstRecordNo

      public int firstRecordNo()
      Returns the value of the firstRecordNo record component.
      Returns:
      the value of the firstRecordNo record component
    • lastRecordNo

      public int lastRecordNo()
      Returns the value of the lastRecordNo record component.
      Returns:
      the value of the lastRecordNo record component
    • pageNumbers

      public List<Integer> pageNumbers()
      Returns the value of the pageNumbers record component.
      Returns:
      the value of the pageNumbers record component