public class ImapMessageFlags extends Object implements com.aspose.ms.System.IEquatable<ImapMessageFlags>
Represents the flags associated with the message.
Modifier and Type | Method and Description |
---|---|
static ImapMessageFlags |
bitwiseAnd(ImapMessageFlags a,
ImapMessageFlags b)
Implements the operator &.
|
static ImapMessageFlags |
bitwiseOr(ImapMessageFlags a,
ImapMessageFlags b)
Implements the operator |.
|
static ImapMessageFlags |
bitwiseOr(ImapMessageFlags a,
long b)
Implements the operator |.
|
static ImapMessageFlags |
bitwiseOr(long a,
ImapMessageFlags b)
Implements the operator |.
|
boolean |
equals(ImapMessageFlags other)
Determines whether the specified object is equal to the current object.
|
boolean |
equals(Object obj)
Determines whether the specified
Object is equal to this instance. |
static ImapMessageFlags |
getAnswered()
Message has been answered.
|
static ImapMessageFlags |
getDeleted()
Message is "deleted" for removal by later EXPUNGE.
|
static ImapMessageFlags |
getDraft()
Message has been marked as a draft.
|
static ImapMessageFlags |
getEmpty()
Flags are not set
|
static ImapMessageFlags |
getFlagged()
Message is "flagged" for urgent/special attention.
|
static ImapMessageFlags |
getRecent()
Message is "recently" arrived in this mailbox.
|
boolean |
hasFlag(ImapMessageFlags what)
Returns true if "who" contains the "flag"
|
int |
hashCode()
Returns a hash code for this instance.
|
boolean |
isEmpty()
Determines whether this instance is empty.
|
static ImapMessageFlags |
isRead()
Message has been read.
|
static ImapMessageFlags |
keyword(String flag)
Message has been marked by custom flag.
|
static ImapMessageFlags |
op_BitwiseAnd(ImapMessageFlags a,
ImapMessageFlags b)
Implements the operator &.
|
static ImapMessageFlags |
op_BitwiseOr(ImapMessageFlags a,
ImapMessageFlags b)
Implements the operator |.
|
static ImapMessageFlags |
op_BitwiseOr(ImapMessageFlags a,
long b)
Implements the operator |.
|
static ImapMessageFlags |
op_BitwiseOr(long a,
ImapMessageFlags b)
Implements the operator |.
|
static boolean |
op_Equality(ImapMessageFlags a,
ImapMessageFlags b)
Implements the operator ==.
|
static boolean |
op_Inequality(ImapMessageFlags a,
ImapMessageFlags b)
Implements the operator !=.
|
ImapMessageFlags[] |
split()
Split to Array.
|
static ImapMessageFlags |
to_ImapMessageFlags(long type)
Performs an implicit conversion from
long to ImapMessageFlags . |
String |
toString()
Returns a
String that represents this instance. |
public static ImapMessageFlags keyword(String flag)
Message has been marked by custom flag.
public static ImapMessageFlags getAnswered()
Message has been answered.
public static ImapMessageFlags getDeleted()
Message is "deleted" for removal by later EXPUNGE.
public static ImapMessageFlags getDraft()
Message has been marked as a draft.
public static ImapMessageFlags getFlagged()
Message is "flagged" for urgent/special attention.
public static ImapMessageFlags getRecent()
Message is "recently" arrived in this mailbox.
public static ImapMessageFlags isRead()
Message has been read.
public static ImapMessageFlags getEmpty()
Flags are not set
public final boolean isEmpty()
Determines whether this instance is empty.
true
if this instance is empty; otherwise, false
.public final ImapMessageFlags[] split()
Split to Array.
public int hashCode()
Returns a hash code for this instance.
public boolean equals(Object obj)
Determines whether the specified Object
is equal to this instance.
equals
in interface com.aspose.ms.System.IEquatable<ImapMessageFlags>
equals
in class Object
obj
- The Object
to compare with this instance.true
if the specified Object
is equal to this instance; otherwise, false
.NullReferenceException
- The obj
parameter is null.public static ImapMessageFlags to_ImapMessageFlags(long type)
Performs an implicit conversion from long
to ImapMessageFlags
.
type
- Value of a type.public static ImapMessageFlags op_BitwiseOr(ImapMessageFlags a, ImapMessageFlags b)
Implements the operator |.
a
- First set of imap message flags.b
- Second set of imap message flags.public static ImapMessageFlags op_BitwiseOr(ImapMessageFlags a, long b)
Implements the operator |.
a
- First set of imap message flags.b
- Second set of imap message flags.public static ImapMessageFlags op_BitwiseOr(long a, ImapMessageFlags b)
Implements the operator |.
a
- First set of imap message flags.b
- Second set of imap message flags.public static ImapMessageFlags op_BitwiseAnd(ImapMessageFlags a, ImapMessageFlags b)
Implements the operator &.
a
- First set of imap message flags.b
- Second set of imap message flags.public static ImapMessageFlags bitwiseOr(ImapMessageFlags a, ImapMessageFlags b)
Implements the operator |.
a
- First set of imap message flags.b
- Second set of imap message flags.public static ImapMessageFlags bitwiseOr(ImapMessageFlags a, long b)
Implements the operator |.
a
- First set of imap message flags.b
- Second set of imap message flags.public static ImapMessageFlags bitwiseOr(long a, ImapMessageFlags b)
Implements the operator |.
a
- First set of imap message flags.b
- Second set of imap message flags.public static ImapMessageFlags bitwiseAnd(ImapMessageFlags a, ImapMessageFlags b)
Implements the operator &.
a
- First set of imap message flags.b
- Second set of imap message flags.public final boolean hasFlag(ImapMessageFlags what)
Returns true if "who" contains the "flag"
what
- Imap message flagspublic static boolean op_Inequality(ImapMessageFlags a, ImapMessageFlags b)
Implements the operator !=.
a
- First set of imap message flags.b
- Second set of imap message flags.public static boolean op_Equality(ImapMessageFlags a, ImapMessageFlags b)
Implements the operator ==.
a
- First set of imap message flags.b
- Second set of imap message flags.public boolean equals(ImapMessageFlags other)
Determines whether the specified object is equal to the current object.
other
- The object to compare with the current object.