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
T:System.Collections.ICollection . |
public PostalAddress getWorkAddress()
Default work address
public void setWorkAddress(PostalAddress value)
Default work address
public PostalAddress getOtherAddress()
Default other address
public void setOtherAddress(PostalAddress value)
Default other address
public PostalAddress getHomeAddress()
Default home address
public void setHomeAddress(PostalAddress value)
Default home address
public void add(PostalAddress value)
Adds an item to the list.
value
- The object to add to the list.public 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 T:System.Object
to insert into the list.public 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 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 boolean contains(PostalAddress value)
Determines whether the list contains a specific value.
value
- The object to locate in the list.public void clear()
Removes all items from the list.
clear
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
public int indexOf(PostalAddress value)
Determines the index of a specific item in the list.
value
- The T:System.Object
to locate in the list.value
if found in the list; otherwise, -1.public boolean remove(PostalAddress value)
Removes the first occurrence of a specific object from the list.
value
- The T:System.Object
to remove from the list.public 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 boolean isReadOnly()
Gets a value indicating whether the list is read-only.
isReadOnly
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
public 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 int size()
Gets the number of elements contained in the T:System.Collections.ICollection
.
size
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PostalAddress>
T:System.Collections.ICollection
.public 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>
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>
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.