public class EmailAddress extends MailAddress implements Comparable<EmailAddress>, com.aspose.ms.System.IEquatable<EmailAddress>
Represents an email address
Constructor and Description |
---|
EmailAddress()
Initializes a new instance of the
EmailAddress class. |
EmailAddress(String address)
Initializes a new instance of the
EmailAddress class. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EmailAddress obj)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
|
boolean |
equals(EmailAddress obj)
Determines whether the specified Object is equal to the current Object.
|
boolean |
equals(EmailAddress x,
EmailAddress y)
Determines whether the specified object instances are considered equal.
|
boolean |
equals(Object obj)
Determines whether the specified Object is equal to the current Object.
|
EmailAddressCategory |
getCategory()
Gets or sets an object category
|
boolean |
getPrefered()
Gets or sets a value which defines whether email address is preferred.
|
String |
getRoutingType()
Gets or sets a routing type for an email
|
int |
hashCode()
GetHashCode returns a hash function for this object.
|
int |
hashCode(EmailAddress obj)
GetHashCode returns a hash function for specified object.
|
static boolean |
op_Equality(EmailAddress a,
EmailAddress b)
Determines whether the specified objects are equal.
|
static boolean |
op_Inequality(EmailAddress a,
EmailAddress b)
Determines whether the specified objects are not equal.
|
void |
setCategory(EmailAddressCategory value)
Gets or sets an object category
|
void |
setPrefered(boolean value)
Gets or sets a value which defines whether email address is preferred.
|
void |
setRoutingType(String value)
Gets or sets a routing type for an email
|
String |
toString()
Returns a string that represents the current object.
|
get_Item, getAddress, getCount, getDisplayName, getHost, getId, getOriginalAddressString, getParticipationStatus, getUser, setAddress, setDisplayName, setParticipationStatus, to_MailAddress, to_MailAddress
public EmailAddress()
Initializes a new instance of the EmailAddress
class.
public EmailAddress(String address)
Initializes a new instance of the EmailAddress
class.
address
- The mail address.public final boolean getPrefered()
Gets or sets a value which defines whether email address is preferred.
public final void setPrefered(boolean value)
Gets or sets a value which defines whether email address is preferred.
public final EmailAddressCategory getCategory()
Gets or sets an object category
public final void setCategory(EmailAddressCategory value)
Gets or sets an object category
public final String getRoutingType()
Gets or sets a routing type for an email
public final void setRoutingType(String value)
Gets or sets a routing type for an email
public String toString()
Returns a string that represents the current object.
toString
in class MailAddress
public int hashCode()
GetHashCode returns a hash function for this object.
hashCode
in class MailAddress
public final int hashCode(EmailAddress obj)
GetHashCode returns a hash function for specified object.
obj
- The Object for which a hash code is to be returned.public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
equals
in interface com.aspose.ms.System.IEquatable<EmailAddress>
equals
in class MailAddress
obj
- The Object to compare with the current Object.public final boolean equals(EmailAddress obj)
Determines whether the specified Object is equal to the current Object.
obj
- The Object to compare with the current Object.public final boolean equals(EmailAddress x, EmailAddress y)
Determines whether the specified object instances are considered equal.
x
- The first object to compare.y
- The second object to compare.public static boolean op_Equality(EmailAddress a, EmailAddress b)
Determines whether the specified objects are equal.
a
- First object to compareb
- Second object to comparepublic static boolean op_Inequality(EmailAddress a, EmailAddress b)
Determines whether the specified objects are not equal.
a
- First object to compareb
- Second object to comparepublic int compareTo(EmailAddress obj)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
compareTo
in interface Comparable<EmailAddress>
obj
- An object to compare with this instance, or null.