com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ImapMessageFlags

  • All Implemented Interfaces:
    IEquatable<ImapMessageFlags>


    public class ImapMessageFlags
    extends Object
    implements IEquatable<ImapMessageFlags>

    Represents the flags associated with the message.

    • Method Detail

      • getAnswered

        public static ImapMessageFlags getAnswered()

        Message has been answered.

      • getDeleted

        public static ImapMessageFlags getDeleted()

        Message is "deleted" for removal by later EXPUNGE.

      • getDraft

        public static ImapMessageFlags getDraft()

        Message has been marked as a draft.

      • getFlagged

        public static ImapMessageFlags getFlagged()

        Message is "flagged" for urgent/special attention.

      • getRecent

        public static ImapMessageFlags getRecent()

        Message is "recently" arrived in this mailbox.

      • isEmpty

        public final boolean isEmpty()

        Determines whether this instance is empty.

        Returns:
        true if this instance is empty; otherwise, false.
      • hashCode

        public int hashCode()

        Returns a hash code for this instance.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
      • equals

        public boolean equals(Object obj)

        Determines whether the specified Object is equal to this instance.

        Specified by:
        equals in interface IEquatable<ImapMessageFlags>
        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with this instance.
        Returns:
        true if the specified Object is equal to this instance; otherwise, false.
        Throws:
        NullReferenceException - The obj parameter is null.
      • to_ImapMessageFlags

        public static ImapMessageFlags to_ImapMessageFlags(String type)

        Performs an implicit conversion from long to ImapMessageFlags.

        Parameters:
        type - Value of a type.
        Returns:
        The result of the conversion.
      • op_BitwiseOr

        public static ImapMessageFlags op_BitwiseOr(ImapMessageFlags a,
                                    ImapMessageFlags b)

        Implements the operator |.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • op_BitwiseOr

        public static ImapMessageFlags op_BitwiseOr(ImapMessageFlags a,
                                    String b)

        Implements the operator |.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • op_BitwiseOr

        public static ImapMessageFlags op_BitwiseOr(String a,
                                    ImapMessageFlags b)

        Implements the operator |.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • op_BitwiseAnd

        public static ImapMessageFlags op_BitwiseAnd(ImapMessageFlags a,
                                     ImapMessageFlags b)

        Implements the operator &.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • bitwiseOr

        public static ImapMessageFlags bitwiseOr(ImapMessageFlags a,
                                 ImapMessageFlags b)

        Implements the operator |.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • bitwiseOr

        public static ImapMessageFlags bitwiseOr(ImapMessageFlags a,
                                 String b)

        Implements the operator |.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • bitwiseOr

        public static ImapMessageFlags bitwiseOr(String a,
                                 ImapMessageFlags b)

        Implements the operator |.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • bitwiseAnd

        public static ImapMessageFlags bitwiseAnd(ImapMessageFlags a,
                                  ImapMessageFlags b)

        Implements the operator &.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • hasFlag

        public final boolean hasFlag(ImapMessageFlags what)

        Returns true if "who" contains the "flag"

        Parameters:
        what - Imap message flags
        Returns:
      • op_Inequality

        public static boolean op_Inequality(ImapMessageFlags a,
                            ImapMessageFlags b)

        Implements the operator !=.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • op_Equality

        public static boolean op_Equality(ImapMessageFlags a,
                          ImapMessageFlags b)

        Implements the operator ==.

        Parameters:
        a - First set of imap message flags.
        b - Second set of imap message flags.
        Returns:
        The result of the operator.
      • equals

        public boolean equals(ImapMessageFlags other)

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

        Parameters:
        other - The object to compare with the current object.
        Returns:
        true if the specified object is equal to the current object; otherwise, false.
      • toString

        public String toString()

        Returns a String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A String that represents this instance.