Record Class MailReportService.MailSummary

java.lang.Object
java.lang.Record
com.easydesk.web.service.MailReportService.MailSummary
Record Components:
number - 메일함 안의 메시지 번호 (1 부터, 오래된 순)
uid - IMAP UID (메일함 안에서 고유, 없으면 -1)
from - 보낸 사람
to - 받는 사람 (To, 여럿이면 ", " 로 이음)
cc - 참조 (Cc)
subject - 제목
sentDate - 보낸 시각 (Date 헤더)
receivedDate - 메일함에 들어온 시각 (INTERNALDATE)
seen - 읽음 여부
attachment - 첨부 여부 (multipart/mixed)
size - 크기 (byte)
Enclosing class:
MailReportService

public static record MailReportService.MailSummary(int number, long uid, String from, String to, String cc, String subject, Date sentDate, Date receivedDate, boolean seen, boolean attachment, int size) extends Record
목록 한 줄.
  • Constructor Details

    • MailSummary

      public MailSummary(int number, long uid, String from, String to, String cc, String subject, Date sentDate, Date receivedDate, boolean seen, boolean attachment, int size)
      Creates an instance of a MailSummary record class.
      Parameters:
      number - the value for the number record component
      uid - the value for the uid record component
      from - the value for the from record component
      to - the value for the to record component
      cc - the value for the cc record component
      subject - the value for the subject record component
      sentDate - the value for the sentDate record component
      receivedDate - the value for the receivedDate record component
      seen - the value for the seen record component
      attachment - the value for the attachment record component
      size - the value for the size record component
  • Method Details

    • sizeLabel

      public String sizeLabel()
      Returns:
      사람이 읽기 쉬운 크기 (예: 12.3 KB)
    • 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.
    • number

      public int number()
      Returns the value of the number record component.
      Returns:
      the value of the number record component
    • uid

      public long uid()
      Returns the value of the uid record component.
      Returns:
      the value of the uid record component
    • from

      public String from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • to

      public String to()
      Returns the value of the to record component.
      Returns:
      the value of the to record component
    • cc

      public String cc()
      Returns the value of the cc record component.
      Returns:
      the value of the cc record component
    • subject

      public String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • sentDate

      public Date sentDate()
      Returns the value of the sentDate record component.
      Returns:
      the value of the sentDate record component
    • receivedDate

      public Date receivedDate()
      Returns the value of the receivedDate record component.
      Returns:
      the value of the receivedDate record component
    • seen

      public boolean seen()
      Returns the value of the seen record component.
      Returns:
      the value of the seen record component
    • attachment

      public boolean attachment()
      Returns the value of the attachment record component.
      Returns:
      the value of the attachment record component
    • size

      public int size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component