PostalAddressList

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericList

public class PostalAddressList implements System.Collections.Generic.IGenericList<PostalAddress>

List of postal addresses for a contact.

Constructors

ConstructorDescription
PostalAddressList()

Methods

MethodDescription
add(PostalAddress value)Adds an item to the list.
addItem(PostalAddress value)
clear()Removes all items from the list.
contains(PostalAddress value)Determines whether the list contains a specific value.
containsItem(PostalAddress value)
copyTo(PostalAddress[] array, int index)Copies the elements to an array, starting at a particular array index.
copyToTArray(PostalAddress[] array, int index)
equals(Object arg0)
getClass()
getHomeAddress()Default home address
getOtherAddress()Default other address
getWorkAddress()Default work address
get_Item(int index)Gets or sets the element at the specified index.
hashCode()
indexOf(PostalAddress value)Determines the index of a specific item in the list.
indexOfItem(PostalAddress value)
insert(int index, PostalAddress value)Inserts an item to the list at the specified index.
insertItem(int index, PostalAddress value)
isReadOnly()Gets a value indicating whether the list is read-only.
iterator()Returns an enumerator that iterates through a collection.
notify()
notifyAll()
remove(PostalAddress value)Removes the first occurrence of a specific object from the list.
removeAt(int index)Removes the list item at the specified index.
removeItem(PostalAddress value)
setHomeAddress(PostalAddress value)Default home address
setOtherAddress(PostalAddress value)Default other address
setWorkAddress(PostalAddress value)Default work address
set_Item(int index, PostalAddress value)Gets or sets the element at the specified index.
size()Gets the number of elements contained in the ICollection.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PostalAddressList()

public PostalAddressList()

add(PostalAddress value)

public final void add(PostalAddress value)

Adds an item to the list.

Parameters:

ParameterTypeDescription
valuePostalAddressThe object to add to the list.

addItem(PostalAddress value)

public void addItem(PostalAddress value)

Parameters:

ParameterTypeDescription
valuePostalAddress

clear()

public final void clear()

Removes all items from the list.

contains(PostalAddress value)

public final boolean contains(PostalAddress value)

Determines whether the list contains a specific value.

Parameters:

ParameterTypeDescription
valuePostalAddressThe object to locate in the list.

Returns: boolean - true if the object is found in the list; otherwise, false.

containsItem(PostalAddress value)

public boolean containsItem(PostalAddress value)

Parameters:

ParameterTypeDescription
valuePostalAddress

Returns: boolean

copyTo(PostalAddress[] array, int index)

public final void copyTo(PostalAddress[] array, int index)

Copies the elements to an array, starting at a particular array index.

Parameters:

ParameterTypeDescription
arrayPostalAddress[]The one-dimensional array that is the destination of the elements copied from collections. The array must have zero-based indexing.
indexintThe zero-based index in array at which copying begins.

copyToTArray(PostalAddress[] array, int index)

public void copyToTArray(PostalAddress[] array, int index)

Parameters:

ParameterTypeDescription
arrayPostalAddress[]
indexint

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

getHomeAddress()

public final PostalAddress getHomeAddress()

Default home address

Returns: PostalAddress

getOtherAddress()

public final PostalAddress getOtherAddress()

Default other address

Returns: PostalAddress

getWorkAddress()

public final PostalAddress getWorkAddress()

Default work address

Returns: PostalAddress

get_Item(int index)

public final PostalAddress get_Item(int index)

Gets or sets the element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to get or set.

Returns: PostalAddress - The element at the specified index.

hashCode()

public native int hashCode()

Returns: int

indexOf(PostalAddress value)

public final int indexOf(PostalAddress value)

Determines the index of a specific item in the list.

Parameters:

ParameterTypeDescription
valuePostalAddressThe Object to locate in the list.

Returns: int - The index of value if found in the list; otherwise, -1.

indexOfItem(PostalAddress value)

public int indexOfItem(PostalAddress value)

Parameters:

ParameterTypeDescription
valuePostalAddress

Returns: int

insert(int index, PostalAddress value)

public final void insert(int index, PostalAddress value)

Inserts an item to the list at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index at which value should be inserted.
valuePostalAddressThe Object to insert into the list.

insertItem(int index, PostalAddress value)

public void insertItem(int index, PostalAddress value)

Parameters:

ParameterTypeDescription
indexint
valuePostalAddress

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether the list is read-only.

Returns: boolean - true if the list is read-only; otherwise, false.

iterator()

public final System.Collections.Generic.IGenericEnumerator<PostalAddress> iterator()

Returns an enumerator that iterates through a collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.email.PostalAddress> - An IEnumerator object that can be used to iterate through the collection.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(PostalAddress value)

public final boolean remove(PostalAddress value)

Removes the first occurrence of a specific object from the list.

Parameters:

ParameterTypeDescription
valuePostalAddressThe Object to remove from the list.

Returns: boolean

removeAt(int index)

public final void removeAt(int index)

Removes the list item at the specified index.

Parameters:

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

removeItem(PostalAddress value)

public boolean removeItem(PostalAddress value)

Parameters:

ParameterTypeDescription
valuePostalAddress

Returns: boolean

setHomeAddress(PostalAddress value)

public final void setHomeAddress(PostalAddress value)

Default home address

Parameters:

ParameterTypeDescription
valuePostalAddress

setOtherAddress(PostalAddress value)

public final void setOtherAddress(PostalAddress value)

Default other address

Parameters:

ParameterTypeDescription
valuePostalAddress

setWorkAddress(PostalAddress value)

public final void setWorkAddress(PostalAddress value)

Default work address

Parameters:

ParameterTypeDescription
valuePostalAddress

set_Item(int index, PostalAddress value)

public final void set_Item(int index, PostalAddress value)

Gets or sets the element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to get or set.
valuePostalAddress

size()

public final int size()

Gets the number of elements contained in the ICollection.

Returns: int - The number of elements contained in the ICollection.

toString()

public String toString()

Returns: java.lang.String

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