EmailAddressCategory

Inheritance: java.lang.Object

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

public class EmailAddressCategory implements System.IEquatable<EmailAddressCategory>

Represents category for an email address

Constructors

Constructor Description
EmailAddressCategory(String description) Initializes a new instance of the EmailAddressCategory class with ‘Custom’ category.

Fields

Field Description
HOME_VALUE String value for ‘Home’ category
WORK_VALUE String value for ‘Work’ category
CUSTOM_VALUE String value for ‘Custom’ category
EMAIL_1_VALUE String value for ‘Email1’ category
EMAIL_2_VALUE String value for ‘Email2’ category
EMAIL_3_VALUE String value for ‘Email3’ category

Methods

Method Description
getHome() Home category
getWork() Work category
getCustom() Custom category
getEmail1() Email1 category.
getEmail2() Email2 category.
getEmail3() Email3 category.
getValue() Gets category of a email address
getDescription() Gets description for the ‘Custom’ category of a email address
toString() Returns a string that represents the current object.
hashCode() GetHashCode returns a hash function for this object.
equals(Object obj) Determines whether the specified Object is equal to the current Object.
equals(EmailAddressCategory other) Determines whether the specified Object is equal to the current Object.
op_Equality(EmailAddressCategory a, EmailAddressCategory b) Determines whether the specified objects are equal.
op_Inequality(EmailAddressCategory a, EmailAddressCategory b) Determines whether the specified objects are not equal.

EmailAddressCategory(String description)

public EmailAddressCategory(String description)

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

Parameters:

Parameter Type Description
description java.lang.String Description for email address category

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

getHome()

public static EmailAddressCategory getHome()

Home category

Returns: EmailAddressCategory

getWork()

public static EmailAddressCategory getWork()

Work category

Returns: EmailAddressCategory

getCustom()

public static EmailAddressCategory getCustom()

Custom category

Returns: EmailAddressCategory

getEmail1()

public static EmailAddressCategory getEmail1()

Email1 category. Used by MS Exchange server.

Returns: EmailAddressCategory

getEmail2()

public static EmailAddressCategory getEmail2()

Email2 category. Used by MS Exchange server.

Returns: EmailAddressCategory

getEmail3()

public static EmailAddressCategory getEmail3()

Email3 category. Used by MS Exchange server.

Returns: EmailAddressCategory

getValue()

public final String getValue()

Gets category of a email address

Returns: java.lang.String

getDescription()

public final String getDescription()

Gets description for the ‘Custom’ category of a email address

Returns: java.lang.String

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - Returns a string that represents the current object.

hashCode()

public int hashCode()

GetHashCode returns a hash function for this object.

Returns: int - Returns a hash function for this object.

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

Parameter Type Description
obj java.lang.Object The Object to compare with the current Object.

Returns: boolean - Returns a boolean indicating if the passed in object obj is Equal to this.

equals(EmailAddressCategory other)

public boolean equals(EmailAddressCategory other)

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

Parameters:

Parameter Type Description
other EmailAddressCategory The Object to compare with the current Object.

Returns: boolean - Returns a boolean indicating if the passed in object obj is Equal to this.

op_Equality(EmailAddressCategory a, EmailAddressCategory b)

public static boolean op_Equality(EmailAddressCategory a, EmailAddressCategory b)

Determines whether the specified objects are equal.

Parameters:

Parameter Type Description
a EmailAddressCategory First object to compare
b EmailAddressCategory Second object to compare

Returns: boolean - Returns true if objects are equal, otherwise false.

op_Inequality(EmailAddressCategory a, EmailAddressCategory b)

public static boolean op_Inequality(EmailAddressCategory a, EmailAddressCategory b)

Determines whether the specified objects are not equal.

Parameters:

Parameter Type Description
a EmailAddressCategory First object to compare
b EmailAddressCategory Second object to compare

Returns: boolean - Returns true if objects are not equal, otherwise false.