EmailAddress
Inheritance: java.lang.Object, com.aspose.email.MailAddress
All Implemented Interfaces: java.lang.Comparable, com.aspose.ms.System.IEquatable
public class EmailAddress extends MailAddress implements Comparable<EmailAddress>, System.IEquatable<EmailAddress>
Represents an email address
Constructors
Constructor | Description |
---|---|
EmailAddress() | Initializes a new instance of the EmailAddress class. |
EmailAddress(String address) | Initializes a new instance of the EmailAddress class. |
EmailAddress(String address, String displayName) | Initializes a new instance of the EmailAddress class. |
Methods
Method | Description |
---|---|
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. |
equals(EmailAddress obj) | Determines whether the specified Object is equal to the current Object. |
equals(EmailAddress x, EmailAddress y) | Determines whether the specified object instances are considered equal. |
equals(Object obj) | Determines whether the specified Object is equal to the current Object. |
getAddress() | Gets or sets the e-mail address. |
getCategory() | Gets or sets an object category |
getClass() | |
getCount() | Contains count of mail addresses. |
getDisplayName() | Gets or sets a display name. |
getHost() | Gets the host portion of the address. |
getId() | Gets object identification information |
getOriginalAddressString() | Gets or sets the original e-mail address string. |
getParticipationStatus() | Gets or sets the participation status for the calendar user. |
getPrefered() | Gets or sets a value which defines whether email address is preferred. |
getRoutingType() | Gets or sets a routing type for an email |
getUser() | Gets the username. |
get_Item(int i) | Gets the element at the specified index. |
hashCode() | GetHashCode returns a hash function for this object. |
hashCode(EmailAddress obj) | GetHashCode returns a hash function for specified object. |
notify() | |
notifyAll() | |
op_Equality(EmailAddress a, EmailAddress b) | Determines whether the specified objects are equal. |
op_Inequality(EmailAddress a, EmailAddress b) | Determines whether the specified objects are not equal. |
setAddress(String value) | Gets or sets the e-mail address. |
setCategory(EmailAddressCategory value) | Gets or sets an object category |
setDisplayName(String value) | Gets or sets a display name. |
setParticipationStatus(int value) | Gets or sets the participation status for the calendar user. |
setPrefered(boolean value) | Gets or sets a value which defines whether email address is preferred. |
setRoutingType(String value) | Gets or sets a routing type for an email |
toString() | Returns a string that represents the current object. |
to_MailAddress(MailAddressCollection addresses) | Performs an implicit conversion from MailAddressCollection to MailAddress. |
to_MailAddress(String address) | Performs an implicit conversion from String to MailAddress. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
EmailAddress()
public EmailAddress()
Initializes a new instance of the EmailAddress class.
EmailAddress(String address)
public EmailAddress(String address)
Initializes a new instance of the EmailAddress class.
Parameters:
Parameter | Type | Description |
---|---|---|
address | java.lang.String | The mail address. |
EmailAddress(String address, String displayName)
public EmailAddress(String address, String displayName)
Initializes a new instance of the EmailAddress class.
Parameters:
Parameter | Type | Description |
---|---|---|
address | java.lang.String | The mail address. |
displayName | java.lang.String | The display name. |
compareTo(EmailAddress obj)
public 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.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | EmailAddress | An object to compare with this instance, or null. |
Returns: int - This method returns: a value less than 0 if this is less than value 0 if this is equal to value a value greater than 0 if this is greater than value
equals(EmailAddress obj)
public final boolean equals(EmailAddress obj)
Determines whether the specified Object is equal to the current Object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | EmailAddress | 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(EmailAddress x, EmailAddress y)
public final boolean equals(EmailAddress x, EmailAddress y)
Determines whether the specified object instances are considered equal.
Parameters:
Parameter | Type | Description |
---|---|---|
x | EmailAddress | The first object to compare. |
y | EmailAddress | The second object to compare. |
Returns: boolean - true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.
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.
getAddress()
public final String getAddress()
Gets or sets the e-mail address.
Value: A String that contains the e-mail address.
Returns: java.lang.String
getCategory()
public final EmailAddressCategory getCategory()
Gets or sets an object category
Returns: EmailAddressCategory
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCount()
public final int getCount()
Contains count of mail addresses.
Returns: int
getDisplayName()
public final String getDisplayName()
Gets or sets a display name.
Value: A String that contains the display name.
Returns: java.lang.String
getHost()
public final String getHost()
Gets the host portion of the address.
Value: A String that contains the name of the host.
Returns: java.lang.String
getId()
public final ObjectIdentifier getId()
Gets object identification information
Returns: ObjectIdentifier
getOriginalAddressString()
public final String getOriginalAddressString()
Gets or sets the original e-mail address string.
Value: A String that contains the original e-mail address.
Returns: java.lang.String
getParticipationStatus()
public final int getParticipationStatus()
Gets or sets the participation status for the calendar user.
Returns: int
getPrefered()
public final boolean getPrefered()
Gets or sets a value which defines whether email address is preferred.
Returns: boolean
getRoutingType()
public final String getRoutingType()
Gets or sets a routing type for an email
Returns: java.lang.String
getUser()
public final String getUser()
Gets the username.
Value: A String that contains the user name.
Returns: java.lang.String
get_Item(int i)
public final MailAddress get_Item(int i)
Gets the element at the specified index.
Parameters:
Parameter | Type | Description |
---|---|---|
i | int | The zero-based index of the element to get or set. |
Returns: MailAddress - Returns the element at the specified index.
hashCode()
public int hashCode()
GetHashCode returns a hash function for this object.
Returns: int - Returns a hash function for this object.
hashCode(EmailAddress obj)
public final int hashCode(EmailAddress obj)
GetHashCode returns a hash function for specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | EmailAddress | The Object for which a hash code is to be returned. |
Returns: int - Returns a hash function for specified object.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
op_Equality(EmailAddress a, EmailAddress b)
public static boolean op_Equality(EmailAddress a, EmailAddress b)
Determines whether the specified objects are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
a | EmailAddress | First object to compare |
b | EmailAddress | Second object to compare |
Returns: boolean - Returns true if objects are equal, otherwise false.
op_Inequality(EmailAddress a, EmailAddress b)
public static boolean op_Inequality(EmailAddress a, EmailAddress b)
Determines whether the specified objects are not equal.
Parameters:
Parameter | Type | Description |
---|---|---|
a | EmailAddress | First object to compare |
b | EmailAddress | Second object to compare |
Returns: boolean - Returns true if objects are not equal, otherwise false.
setAddress(String value)
public final void setAddress(String value)
Gets or sets the e-mail address.
Value: A String that contains the e-mail address.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setCategory(EmailAddressCategory value)
public final void setCategory(EmailAddressCategory value)
Gets or sets an object category
Parameters:
Parameter | Type | Description |
---|---|---|
value | EmailAddressCategory |
setDisplayName(String value)
public final void setDisplayName(String value)
Gets or sets a display name.
Value: A String that contains the display name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setParticipationStatus(int value)
public final void setParticipationStatus(int value)
Gets or sets the participation status for the calendar user.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setPrefered(boolean value)
public final void setPrefered(boolean value)
Gets or sets a value which defines whether email address is preferred.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setRoutingType(String value)
public final void setRoutingType(String value)
Gets or sets a routing type for an email
Parameters:
Parameter | Type | Description |
---|---|---|
value | 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.
to_MailAddress(MailAddressCollection addresses)
public static MailAddress to_MailAddress(MailAddressCollection addresses)
Performs an implicit conversion from MailAddressCollection to MailAddress.
Parameters:
Parameter | Type | Description |
---|---|---|
addresses | MailAddressCollection | The address collection. |
Returns: MailAddress - The result of the conversion.
to_MailAddress(String address)
public static MailAddress to_MailAddress(String address)
Performs an implicit conversion from String to MailAddress.
Parameters:
Parameter | Type | Description |
---|---|---|
address | java.lang.String | The address. |
Returns: MailAddress - The result of the conversion.
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |