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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImapFlagCorresponds to standardFlags.Flag.ANSWEREDflagstatic final ImapFlagCorresponds to standardFlags.Flag.DELETEDflagstatic final ImapFlagCorresponds to standardFlags.Flag.DRAFTflagstatic final ImapFlagCorresponds to standardFlags.Flag.FLAGGEDflagprotected final Stringstatic final ImapFlagCorresponds to standardFlags.Flag.RECENTflagstatic final ImapFlagCorresponds to standardFlags.Flag.SEENflagprotected final ImapFlag.SystemFlag -
Constructor Summary
ConstructorsModifierConstructorDescriptionImapFlag(ImapFlag.SystemFlag systemFlag) Constructs standard flag with specifiedImapFlag.SystemFlagvalueprotectedImapFlag(ImapFlag.SystemFlag systemFlag, String name) Constructs custom flag with specified name -
Method Summary
-
Field Details
-
systemFlag
-
name
-
SEEN
Corresponds to standardFlags.Flag.SEENflag -
ANSWERED
Corresponds to standardFlags.Flag.ANSWEREDflag -
DRAFT
Corresponds to standardFlags.Flag.DRAFTflag -
DELETED
Corresponds to standardFlags.Flag.DELETEDflag -
IMPORTANT
Corresponds to standardFlags.Flag.FLAGGEDflag -
RECENT
Corresponds to standardFlags.Flag.RECENTflag
-
-
Constructor Details
-
ImapFlag
Constructs custom flag with specified name- Parameters:
name- custom flag name
-
ImapFlag
Constructs standard flag with specifiedImapFlag.SystemFlagvalue- Parameters:
systemFlag- standard flag
-
ImapFlag
-
-
Method Details
-
getName
- Returns:
- name of custom flag or null for standard
-
getSystemFlag
- Returns:
ImapFlag.SystemFlagvalue of standard flag or null for custom
-
imapFlags
public javax.mail.Flags imapFlags()convert to java.mailFlagsobject -
equals
-
hashCode
public int hashCode() -
toString
-