com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class EmailAddressCategory

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<EmailAddressCategory>


    public class EmailAddressCategory
    extends Object
    implements com.aspose.ms.System.IEquatable<EmailAddressCategory>

    Represents category for an email address

    • Field Detail

      • HOME_VALUE

        public static final String HOME_VALUE

        String value for 'Home' category

      • WORK_VALUE

        public static final String WORK_VALUE

        String value for 'Work' category

      • CUSTOM_VALUE

        public static final String CUSTOM_VALUE

        String value for 'Custom' category

      • EMAIL_1_VALUE

        public static final String EMAIL_1_VALUE

        String value for 'Email1' category

      • EMAIL_2_VALUE

        public static final String EMAIL_2_VALUE

        String value for 'Email2' category

      • EMAIL_3_VALUE

        public static final String EMAIL_3_VALUE

        String value for 'Email3' category

    • Constructor Detail

      • EmailAddressCategory

        public EmailAddressCategory(String description)

        Initializes a new instance of the EmailAddressCategory class with 'Custom' category.

        Parameters:
        description - Description for email address category
    • Method Detail

      • getEmail1

        public static EmailAddressCategory getEmail1()

        Email1 category. Used by MS Exchange server.

      • getEmail2

        public static EmailAddressCategory getEmail2()

        Email2 category. Used by MS Exchange server.

      • getEmail3

        public static EmailAddressCategory getEmail3()

        Email3 category. Used by MS Exchange server.

      • getValue

        public final String getValue()

        Gets category of a email address

      • getDescription

        public final String getDescription()

        Gets description for the 'Custom' category of a email address

      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        Returns a string that represents the current object.
      • hashCode

        public int hashCode()

        GetHashCode returns a hash function for this object.

        Overrides:
        hashCode in class Object
        Returns:
        Returns a hash function for this object.
      • equals

        public boolean equals(Object obj)

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<EmailAddressCategory>
        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with the current Object.
        Returns:
        Returns a boolean indicating if the passed in object obj is Equal to this.
      • equals

        public boolean equals(EmailAddressCategory other)

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

        Parameters:
        other - The Object to compare with the current Object.
        Returns:
        Returns a boolean indicating if the passed in object obj is Equal to this.
      • op_Equality

        public static boolean op_Equality(EmailAddressCategory a,
                          EmailAddressCategory b)

        Determines whether the specified objects are equal.

        Parameters:
        a - First object to compare
        b - Second object to compare
        Returns:
        Returns true if objects are equal, otherwise false.
      • op_Inequality

        public static boolean op_Inequality(EmailAddressCategory a,
                            EmailAddressCategory b)

        Determines whether the specified objects are not equal.

        Parameters:
        a - First object to compare
        b - Second object to compare
        Returns:
        Returns true if objects are not equal, otherwise false.