MailAddressCollection

Inheritance: java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection

public class MailAddressCollection extends System.Collections.ObjectModel.Collection<MailAddress>

Represents a collection of MailAddress objects.

Constructors

ConstructorDescription
MailAddressCollection()

Methods

MethodDescription
add(String addresses)Add a list of e-mail addresses to the collection.
addItem(T arg0)
addMailAddress(MailAddress address)Add a MailAddress to the collection.
addRange(MailAddressCollection addresses)Adds addresses to collection
addRange(Iterable addresses)Adds addresses to collection
clear()Removes all elements from the Collection.
containsItem(T arg0)
copy()Copies this instance.
copyToTArray(T[] arg0, int arg1)
equals(Object arg0)
getClass()
getICollection()
getIList()
getSyncRoot()
get_Item(int arg0)
hashCode()
indexOfItem(T arg0)
insertItem(int arg0, T arg1)
insertItem(int index, MailAddress item)Inserts an element into the System.Collections.ObjectModel.Collection1 at the specified index.
isReadOnly()
iterator()
notify()
notifyAll()
removeAt(int index)Removes the element at the specified index of the Collection.
removeItem(T arg0)
set_Item(int arg0, T arg1)
size()
toString()Returns a String that represents this instance.
to_MailAddressCollection(MailAddress address)Performs an implicit conversion from MailAddress to MailAddressCollection.
to_MailAddressCollection(String addresses)Performs an implicit conversion from String to MailAddressCollection.
wait()
wait(long arg0)
wait(long arg0, int arg1)

MailAddressCollection()

public MailAddressCollection()

add(String addresses)

public final void add(String addresses)

Add a list of e-mail addresses to the collection.

Parameters:

ParameterTypeDescription
addressesjava.lang.StringAn address list. Addresses must be separated with a comma character.

addItem(T arg0)

public void addItem(T arg0)

Parameters:

ParameterTypeDescription
arg0T

addMailAddress(MailAddress address)

public final void addMailAddress(MailAddress address)

Add a MailAddress to the collection.

Parameters:

ParameterTypeDescription
addressMailAddressThe MailAddress

addRange(MailAddressCollection addresses)

public final void addRange(MailAddressCollection addresses)

Adds addresses to collection

Parameters:

ParameterTypeDescription
addressesMailAddressCollectionCollection of mail addresses

addRange(Iterable addresses)

public final void addRange(Iterable<MailAddress> addresses)

Adds addresses to collection

Parameters:

ParameterTypeDescription
addressesjava.lang.Iterable<com.aspose.email.MailAddress>Enumeration of mail addresses

clear()

public void clear()

Removes all elements from the Collection.

containsItem(T arg0)

public boolean containsItem(T arg0)

Parameters:

ParameterTypeDescription
arg0T

Returns: boolean

copy()

public final MailAddressCollection copy()

Copies this instance.

Returns: MailAddressCollection -

copyToTArray(T[] arg0, int arg1)

public void copyToTArray(T[] arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0T[]
arg1int

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getICollection()

public System.Collections.ICollection getICollection()

Returns: com.aspose.ms.System.Collections.ICollection

getIList()

public System.Collections.IList getIList()

Returns: com.aspose.ms.System.Collections.IList

getSyncRoot()

public Object getSyncRoot()

Returns: java.lang.Object

get_Item(int arg0)

public T get_Item(int arg0)

Parameters:

ParameterTypeDescription
arg0int

Returns: T

hashCode()

public native int hashCode()

Returns: int

indexOfItem(T arg0)

public int indexOfItem(T arg0)

Parameters:

ParameterTypeDescription
arg0T

Returns: int

insertItem(int arg0, T arg1)

public void insertItem(int arg0, T arg1)

Parameters:

ParameterTypeDescription
arg0int
arg1T

insertItem(int index, MailAddress item)

public void insertItem(int index, MailAddress item)

Inserts an element into the System.Collections.ObjectModel.Collection1 at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index at which item should be inserted.
itemMailAddressThe object to insert. The value can be null for reference types.

isReadOnly()

public boolean isReadOnly()

Returns: boolean

iterator()

public System.Collections.Generic.IGenericEnumerator<T> iterator()

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeAt(int index)

public void removeAt(int index)

Removes the element at the specified index of the Collection.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to remove.

removeItem(T arg0)

public boolean removeItem(T arg0)

Parameters:

ParameterTypeDescription
arg0T

Returns: boolean

set_Item(int arg0, T arg1)

public void set_Item(int arg0, T arg1)

Parameters:

ParameterTypeDescription
arg0int
arg1T

size()

public int size()

Returns: int

toString()

public String toString()

Returns a String that represents this instance.

Returns: java.lang.String - A String that represents this instance.

to_MailAddressCollection(MailAddress address)

public static MailAddressCollection to_MailAddressCollection(MailAddress address)

Performs an implicit conversion from MailAddress to MailAddressCollection.

Parameters:

ParameterTypeDescription
addressMailAddressThe address.

Returns: MailAddressCollection - The result of the conversion.

to_MailAddressCollection(String addresses)

public static MailAddressCollection to_MailAddressCollection(String addresses)

Performs an implicit conversion from String to MailAddressCollection.

Parameters:

ParameterTypeDescription
addressesjava.lang.StringThe address list.

Returns: MailAddressCollection - The result of the conversion.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int