ImapMessageFlags

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IEquatable

public class ImapMessageFlags implements System.IEquatable<ImapMessageFlags>

Represents the flags associated with the message.

Methods

Method Description
keyword(String flag) Message has been marked by custom flag.
getAnswered() Message has been answered.
getDeleted() Message is “deleted” for removal by later EXPUNGE.
getDraft() Message has been marked as a draft.
getFlagged() Message is “flagged” for urgent/special attention.
getRecent() Message is “recently” arrived in this mailbox.
isRead() Message has been read.
getEmpty() Flags are not set
isEmpty() Determines whether this instance is empty.
split() Split to Array.
hashCode() Returns a hash code for this instance.
equals(Object obj) Determines whether the specified Object is equal to this instance.
to_ImapMessageFlags(String type) Performs an implicit conversion from long to ImapMessageFlags.
op_BitwiseOr(ImapMessageFlags a, ImapMessageFlags b) Implements the operator
op_BitwiseOr(ImapMessageFlags a, String b) Implements the operator
op_BitwiseOr(String a, ImapMessageFlags b) Implements the operator
op_BitwiseAnd(ImapMessageFlags a, ImapMessageFlags b) Implements the operator &.
bitwiseOr(ImapMessageFlags a, ImapMessageFlags b) Implements the operator
bitwiseOr(ImapMessageFlags a, String b) Implements the operator
bitwiseOr(String a, ImapMessageFlags b) Implements the operator
bitwiseAnd(ImapMessageFlags a, ImapMessageFlags b) Implements the operator &.
hasFlag(ImapMessageFlags what) Returns true if “who” contains the “flag”
op_Inequality(ImapMessageFlags a, ImapMessageFlags b) Implements the operator !=.
op_Equality(ImapMessageFlags a, ImapMessageFlags b) Implements the operator ==.
equals(ImapMessageFlags other) Determines whether the specified object is equal to the current object.
toString() Returns a String that represents this instance.

keyword(String flag)

public static ImapMessageFlags keyword(String flag)

Message has been marked by custom flag.

Parameters:

Parameter Type Description
flag java.lang.String

Returns: ImapMessageFlags

getAnswered()

public static ImapMessageFlags getAnswered()

Message has been answered.

Returns: ImapMessageFlags

getDeleted()

public static ImapMessageFlags getDeleted()

Message is “deleted” for removal by later EXPUNGE.

Returns: ImapMessageFlags

getDraft()

public static ImapMessageFlags getDraft()

Message has been marked as a draft.

Returns: ImapMessageFlags

getFlagged()

public static ImapMessageFlags getFlagged()

Message is “flagged” for urgent/special attention.

Returns: ImapMessageFlags

getRecent()

public static ImapMessageFlags getRecent()

Message is “recently” arrived in this mailbox.

Returns: ImapMessageFlags

isRead()

public static ImapMessageFlags isRead()

Message has been read.

Returns: ImapMessageFlags

getEmpty()

public static ImapMessageFlags getEmpty()

Flags are not set

Returns: ImapMessageFlags

isEmpty()

public final boolean isEmpty()

Determines whether this instance is empty.

Returns: boolean - ``` true ``` if this instance is empty; otherwise, ``` false ```.

split()

public final ImapMessageFlags[] split()

Split to Array.

Returns: com.aspose.email.ImapMessageFlags[]

hashCode()

public int hashCode()

Returns a hash code for this instance.

Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified Object is equal to this instance.

Parameters:

Parameter Type Description
obj java.lang.Object The Object to compare with this instance.

Returns: boolean - ``` true ``` if the specified Object is equal to this instance; otherwise, ``` false ```.

to_ImapMessageFlags(String type)

public static ImapMessageFlags to_ImapMessageFlags(String type)

Performs an implicit conversion from long to ImapMessageFlags.

Parameters:

Parameter Type Description
type java.lang.String Value of a type.

Returns: ImapMessageFlags - The result of the conversion.

op_BitwiseOr(ImapMessageFlags a, ImapMessageFlags b)

public static ImapMessageFlags op_BitwiseOr(ImapMessageFlags a, ImapMessageFlags b)

Implements the operator |.

Parameters:

Parameter Type Description
a ImapMessageFlags First set of imap message flags.
b ImapMessageFlags Second set of imap message flags.

Returns: ImapMessageFlags - The result of the operator.

op_BitwiseOr(ImapMessageFlags a, String b)

public static ImapMessageFlags op_BitwiseOr(ImapMessageFlags a, String b)

Implements the operator |.

Parameters:

Parameter Type Description
a ImapMessageFlags First set of imap message flags.
b java.lang.String Second set of imap message flags.

Returns: ImapMessageFlags - The result of the operator.

op_BitwiseOr(String a, ImapMessageFlags b)

public static ImapMessageFlags op_BitwiseOr(String a, ImapMessageFlags b)

Implements the operator |.

Parameters:

Parameter Type Description
a java.lang.String First set of imap message flags.
b ImapMessageFlags Second set of imap message flags.

Returns: ImapMessageFlags - The result of the operator.

op_BitwiseAnd(ImapMessageFlags a, ImapMessageFlags b)

public static ImapMessageFlags op_BitwiseAnd(ImapMessageFlags a, ImapMessageFlags b)

Implements the operator &.

Parameters:

Parameter Type Description
a ImapMessageFlags First set of imap message flags.
b ImapMessageFlags Second set of imap message flags.

Returns: ImapMessageFlags - The result of the operator.

bitwiseOr(ImapMessageFlags a, ImapMessageFlags b)

public static ImapMessageFlags bitwiseOr(ImapMessageFlags a, ImapMessageFlags b)

Implements the operator |.

Parameters:

Parameter Type Description
a ImapMessageFlags First set of imap message flags.
b ImapMessageFlags Second set of imap message flags.

Returns: ImapMessageFlags - The result of the operator.

bitwiseOr(ImapMessageFlags a, String b)

public static ImapMessageFlags bitwiseOr(ImapMessageFlags a, String b)

Implements the operator |.

Parameters:

Parameter Type Description
a ImapMessageFlags First set of imap message flags.
b java.lang.String Second set of imap message flags.

Returns: ImapMessageFlags - The result of the operator.

bitwiseOr(String a, ImapMessageFlags b)

public static ImapMessageFlags bitwiseOr(String a, ImapMessageFlags b)

Implements the operator |.

Parameters:

Parameter Type Description
a java.lang.String First set of imap message flags.
b ImapMessageFlags Second set of imap message flags.

Returns: ImapMessageFlags - The result of the operator.

bitwiseAnd(ImapMessageFlags a, ImapMessageFlags b)

public static ImapMessageFlags bitwiseAnd(ImapMessageFlags a, ImapMessageFlags b)

Implements the operator &.

Parameters:

Parameter Type Description
a ImapMessageFlags First set of imap message flags.
b ImapMessageFlags Second set of imap message flags.

Returns: ImapMessageFlags - The result of the operator.

hasFlag(ImapMessageFlags what)

public final boolean hasFlag(ImapMessageFlags what)

Returns true if “who” contains the “flag”

Parameters:

Parameter Type Description
what ImapMessageFlags Imap message flags

Returns: boolean -

op_Inequality(ImapMessageFlags a, ImapMessageFlags b)

public static boolean op_Inequality(ImapMessageFlags a, ImapMessageFlags b)

Implements the operator !=.

Parameters:

Parameter Type Description
a ImapMessageFlags First set of imap message flags.
b ImapMessageFlags Second set of imap message flags.

Returns: boolean - The result of the operator.

op_Equality(ImapMessageFlags a, ImapMessageFlags b)

public static boolean op_Equality(ImapMessageFlags a, ImapMessageFlags b)

Implements the operator ==.

Parameters:

Parameter Type Description
a ImapMessageFlags First set of imap message flags.
b ImapMessageFlags Second set of imap message flags.

Returns: boolean - The result of the operator.

equals(ImapMessageFlags other)

public boolean equals(ImapMessageFlags other)

Determines whether the specified object is equal to the current object.

Parameters:

Parameter Type Description
other ImapMessageFlags The object to compare with the current object.

Returns: boolean - true if the specified object is equal to the current object; otherwise, false.

toString()

public String toString()

Returns a String that represents this instance.

Returns: java.lang.String - A String that represents this instance.