public class EmailAddress extends MailAddress implements Comparable, com.aspose.ms.System.Collections.IEqualityComparer
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(Object 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(Object obj)
Determines whether the specified Object is equal to the current Object.
|
boolean |
equals(Object a,
Object b)
Determines whether the specified object instances are considered equal.
|
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(Object 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, getUser, setAddress, setDisplayName, 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 boolean getPrefered()
Gets or sets a value which defines whether email address is preferred.
public void setPrefered(boolean value)
Gets or sets a value which defines whether email address is preferred.
public EmailAddressCategory getCategory()
Gets or sets an object category
public void setCategory(EmailAddressCategory value)
Gets or sets an object category
public String getRoutingType()
Gets or sets a routing type for an email
public 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 int hashCode(Object obj)
GetHashCode returns a hash function for specified object.
hashCode
in interface com.aspose.ms.System.Collections.IEqualityComparer
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 class MailAddress
obj
- The Object to compare with the current Object.public boolean equals(Object a, Object b)
Determines whether the specified object instances are considered equal.
equals
in interface com.aspose.ms.System.Collections.IEqualityComparer
a
- The first object to compare.b
- 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(Object 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
obj
- An object to compare with this instance, or null.Copyright (c) 2008-2017 Aspose Pty Ltd. All Rights Reserved.