public class PostalAddressList extends Object implements com.aspose.ms.System.Collections.Generic.IGenericList<PostalAddress>
List of postal addresses for a contact.
Constructor and Description |
---|
PostalAddressList() |
Modifier and Type | Method and Description |
---|---|
void |
add(PostalAddress value)
Adds an item to the list.
|
void |
addItem(PostalAddress value) |
void |
clear()
Removes all items from the list.
|
boolean |
contains(PostalAddress value)
Determines whether the list contains a specific value.
|
boolean |
containsItem(PostalAddress value) |
void |
copyTo(PostalAddress[] array,
int index)
Copies the elements to an array, starting at a particular array index.
|
void |
copyToTArray(PostalAddress[] array,
int index) |
PostalAddress |
get_Item(int index)
Gets or sets the element at the specified index.
|
PostalAddress |
getHomeAddress()
Default home address
|
PostalAddress |
getOtherAddress()
Default other address
|
PostalAddress |
getWorkAddress()
Default work address
|
int |
indexOf(PostalAddress value)
Determines the index of a specific item in the list.
|
int |
indexOfItem(PostalAddress value) |
void |
insert(int index,
PostalAddress value)
Inserts an item to the list at the specified index.
|
void |
insertItem(int index,
PostalAddress value) |
boolean |
isReadOnly()
Gets a value indicating whether the list is read-only.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<PostalAddress> |
iterator()
Returns an enumerator that iterates through a collection.
|
boolean |
remove(PostalAddress value)
Removes the first occurrence of a specific object from the list.
|
void |
removeAt(int index)
Removes the list item at the specified index.
|
boolean |
removeItem(PostalAddress value) |
void |
set_Item(int index,
PostalAddress value)
Gets or sets the element at the specified index.
|
void |
setHomeAddress(PostalAddress value)
Default home address
|
void |
setOtherAddress(PostalAddress value)
Default other address
|
void |
setWorkAddress(PostalAddress value)
Default work address
|
int |
size()
Gets the number of elements contained in the
ICollection . |
public final PostalAddress getWorkAddress()
Default work address
public final void setWorkAddress(PostalAddress value)
Default work address
public final PostalAddress getOtherAddress()
Default other address
public final void setOtherAddress(PostalAddress value)
Default other address
public final PostalAddress getHomeAddress()
Default home address
public final void setHomeAddress(PostalAddress value)
Default home address
public final void add(PostalAddress value)
Adds an item to the list.
value
- The object to add to the list.public final void insert(int index, PostalAddress value)
Inserts an item to the list at the specified index.
index
- The zero-based index at which value
should be inserted.value
- The Object
to insert into the list.public final PostalAddress get_Item(int index)
Gets or sets the element at the specified index.
get_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PostalAddress>
index
- The zero-based index of the element to get or set.public final void set_Item(int index, PostalAddress value)
Gets or sets the element at the specified index.
set_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PostalAddress>
index
- The zero-based index of the element to get or set.public final boolean contains(PostalAddress value)
Determines whether the list contains a specific value.
value
- The object to locate in the list.public final void clear()
Removes all items from the list.
clear
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
public final int indexOf(PostalAddress value)
Determines the index of a specific item in the list.
value
- The Object
to locate in the list.value
if found in the list; otherwise, -1.public final boolean remove(PostalAddress value)
Removes the first occurrence of a specific object from the list.
value
- The Object
to remove from the list.public final void removeAt(int index)
Removes the list item at the specified index.
removeAt
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PostalAddress>
index
- The zero-based index of the item to remove.public final boolean isReadOnly()
Gets a value indicating whether the list is read-only.
isReadOnly
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
public final void copyTo(PostalAddress[] array, int index)
Copies the elements to an array, starting at a particular array index.
array
- The one-dimensional array that is the destination of the elements copied from collections.
The array must have zero-based indexing.index
- The zero-based index in array at which copying begins.public final int size()
Gets the number of elements contained in the ICollection
.
size
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
ICollection
.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<PostalAddress> iterator()
Returns an enumerator that iterates through a collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<PostalAddress>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<PostalAddress>
iterator
in interface Iterable<PostalAddress>
IEnumerator
object that can be used to iterate through the collection.public void addItem(PostalAddress value)
addItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
public boolean removeItem(PostalAddress value)
removeItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
public void insertItem(int index, PostalAddress value)
insertItem
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PostalAddress>
public int indexOfItem(PostalAddress value)
indexOfItem
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PostalAddress>
public boolean containsItem(PostalAddress value)
containsItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
public void copyToTArray(PostalAddress[] array, int index)
copyToTArray
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>