Package com.easydesk.web.service
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theattachmentrecord component.cc()Returns the value of theccrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.intnumber()Returns the value of thenumberrecord component.Returns the value of thereceivedDaterecord component.booleanseen()Returns the value of theseenrecord component.sentDate()Returns the value of thesentDaterecord component.intsize()Returns the value of thesizerecord component.subject()Returns the value of thesubjectrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.longuid()Returns the value of theuidrecord component.
-
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 aMailSummaryrecord class.- Parameters:
number- the value for thenumberrecord componentuid- the value for theuidrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentcc- the value for theccrecord componentsubject- the value for thesubjectrecord componentsentDate- the value for thesentDaterecord componentreceivedDate- the value for thereceivedDaterecord componentseen- the value for theseenrecord componentattachment- the value for theattachmentrecord componentsize- the value for thesizerecord component
-
-
Method Details
-
sizeLabel
- Returns:
- 사람이 읽기 쉬운 크기 (예: 12.3 KB)
-
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 '=='. -
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
uid
public long uid()Returns the value of theuidrecord component.- Returns:
- the value of the
uidrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
cc
Returns the value of theccrecord component.- Returns:
- the value of the
ccrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
sentDate
Returns the value of thesentDaterecord component.- Returns:
- the value of the
sentDaterecord component
-
receivedDate
Returns the value of thereceivedDaterecord component.- Returns:
- the value of the
receivedDaterecord component
-
seen
public boolean seen()Returns the value of theseenrecord component.- Returns:
- the value of the
seenrecord component
-
attachment
public boolean attachment()Returns the value of theattachmentrecord component.- Returns:
- the value of the
attachmentrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-