Package io.jmix.imap.flags
Class ImapFlag
java.lang.Object
io.jmix.imap.flags.ImapFlag
- All Implemented Interfaces:
Serializable
Unified IMAP Flag
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ImapFlag
Corresponds to standardFlags.Flag.ANSWERED
flagstatic final ImapFlag
Corresponds to standardFlags.Flag.DELETED
flagstatic final ImapFlag
Corresponds to standardFlags.Flag.DRAFT
flagstatic final ImapFlag
Corresponds to standardFlags.Flag.FLAGGED
flagprotected final String
static final ImapFlag
Corresponds to standardFlags.Flag.RECENT
flagstatic final ImapFlag
Corresponds to standardFlags.Flag.SEEN
flagprotected final ImapFlag.SystemFlag
-
Constructor Summary
ModifierConstructorDescriptionImapFlag
(ImapFlag.SystemFlag systemFlag) Constructs standard flag with specifiedImapFlag.SystemFlag
valueprotected
ImapFlag
(ImapFlag.SystemFlag systemFlag, String name) Constructs custom flag with specified name -
Method Summary
-
Field Details
-
systemFlag
-
name
-
SEEN
Corresponds to standardFlags.Flag.SEEN
flag -
ANSWERED
Corresponds to standardFlags.Flag.ANSWERED
flag -
DRAFT
Corresponds to standardFlags.Flag.DRAFT
flag -
DELETED
Corresponds to standardFlags.Flag.DELETED
flag -
IMPORTANT
Corresponds to standardFlags.Flag.FLAGGED
flag -
RECENT
Corresponds to standardFlags.Flag.RECENT
flag
-
-
Constructor Details
-
ImapFlag
Constructs custom flag with specified name- Parameters:
name
- custom flag name
-
ImapFlag
Constructs standard flag with specifiedImapFlag.SystemFlag
value- Parameters:
systemFlag
- standard flag
-
ImapFlag
-
-
Method Details
-
getName
- Returns:
- name of custom flag or null for standard
-
getSystemFlag
- Returns:
ImapFlag.SystemFlag
value of standard flag or null for custom
-
imapFlags
public javax.mail.Flags imapFlags()convert to java.mailFlags
object -
equals
-
hashCode
public int hashCode() -
toString
-