public class AssociatedPersonsList extends Object implements com.aspose.ms.System.Collections.IList
List of associated persons for a contact
Constructor and Description |
---|
AssociatedPersonsList() |
Modifier and Type | Method and Description |
---|---|
void |
add(AssociatedPerson value)
Adds an item to the list.
|
int |
add(Object value)
Adds an item to the list.
|
int |
addItem(Object o) |
void |
clear()
Removes all items from the list.
|
boolean |
contains(AssociatedPerson value)
Determines whether the list contains a specific value.
|
boolean |
contains(Object value)
Determines whether the list contains a specific value.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies the elements of the
T:System.Collections.ICollection to an T:System.Array , starting at a particular T:System.Array index. |
void |
copyTo(AssociatedPerson[] array,
int index)
Copies the elements to an array, starting at a particular array index.
|
AssociatedPerson |
get_Item(int index)
Gets or sets the element at the specified index.
|
String |
getAssistant()
Assistant
|
String |
getBrother()
Brother
|
String |
getChild()
Child
|
String |
getDomesticPartner()
Domestic partner
|
String |
getFather()
Father
|
String |
getFriend()
Friend
|
String |
getManager()
Manager
|
String |
getMother()
Mother
|
String |
getParent()
Parent
|
String |
getPartner()
Partner
|
String |
getReferredBy()
Referred by
|
String |
getRelative()
Relative
|
String |
getSister()
Sister
|
String |
getSpouse()
Spouse
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the
T:System.Collections.ICollection . |
int |
indexOf(AssociatedPerson value)
Determines the index of a specific item in the list.
|
int |
indexOf(Object value)
Determines the index of a specific item in the list.
|
void |
insert(int index,
AssociatedPerson value)
Inserts an item to the list at the specified index.
|
void |
insert(int index,
Object value)
Inserts an item to the list at the specified index.
|
void |
insertItem(int i,
Object o) |
boolean |
isFixedSize()
Gets a value indicating whether the list has a fixed size.
|
boolean |
isReadOnly()
Gets a value indicating whether the list is read-only.
|
boolean |
isSynchronized()
Gets a value indicating whether access to the
T:System.Collections.ICollection is synchronized (thread safe). |
com.aspose.ms.System.Collections.IEnumerator |
iterator()
Returns an enumerator that iterates through a collection.
|
void |
remove(AssociatedPerson value)
Removes the first occurrence of a specific object from the list.
|
void |
remove(Object value)
Removes the first occurrence of a specific object from the list.
|
void |
removeAt(int index)
Removes the list item at the specified index.
|
void |
removeItem(Object o) |
void |
set_Item(int index,
AssociatedPerson value)
Gets or sets the element at the specified index.
|
void |
set_Item(int index,
Object value)
Gets or sets the element at the specified index.
|
void |
setAssistant(String value)
Assistant
|
void |
setBrother(String value)
Brother
|
void |
setChild(String value)
Child
|
void |
setDomesticPartner(String value)
Domestic partner
|
void |
setFather(String value)
Father
|
void |
setFriend(String value)
Friend
|
void |
setManager(String value)
Manager
|
void |
setMother(String value)
Mother
|
void |
setParent(String value)
Parent
|
void |
setPartner(String value)
Partner
|
void |
setReferredBy(String value)
Referred by.
|
void |
setRelative(String value)
Relative
|
void |
setSister(String value)
Sister
|
void |
setSpouse(String value)
Spouse
|
int |
size()
Gets the number of elements contained in the
T:System.Collections.ICollection . |
public void setReferredBy(String value)
Referred by.
value
- a String
object.public void setDomesticPartner(String value)
Domestic partner
value
- a String
object.public int add(Object value)
Adds an item to the list.
value
- The T:System.Object
to add to the list.public void add(AssociatedPerson value)
Adds an item to the list.
value
- The object to add to the list.public boolean contains(Object value)
Determines whether the list contains a specific value.
contains
in interface com.aspose.ms.System.Collections.IList
value
- The T:System.Object
to locate in the list.T:System.Object
is found in the list; otherwise, false.public boolean contains(AssociatedPerson 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.IList
public int indexOf(Object value)
Determines the index of a specific item in the list.
indexOf
in interface com.aspose.ms.System.Collections.IList
value
- The T:System.Object
to locate in the list.value
if found in the list; otherwise, -1.public int indexOf(AssociatedPerson 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 void insert(int index, Object 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.
<filterpriority>2</filterpriority>
System.ArgumentOutOfRangeException
- index
is not a valid index in the list.System.NotSupportedException
- The list is read-only.-or- The list has a fixed size.System.NullReferenceException
- value
is null reference in the list.public void insert(int index, AssociatedPerson 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 void remove(Object value)
Removes the first occurrence of a specific object from the list.
value
- The T:System.Object
to remove from the list.public void remove(AssociatedPerson 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.IList
index
- The zero-based index of the item to remove.public void set_Item(int index, Object value)
Gets or sets the element at the specified index.
set_Item
in interface com.aspose.ms.System.Collections.IList
index
- The zero-based index of the element to get or set.public AssociatedPerson get_Item(int index)
Gets or sets the element at the specified index.
get_Item
in interface com.aspose.ms.System.Collections.IList
index
- The zero-based index of the element to get or set.public void set_Item(int index, AssociatedPerson value)
Gets or sets the element at the specified index.
index
- The zero-based index of the element to get or set.The
- element at the specified index.public boolean isReadOnly()
Gets a value indicating whether the list is read-only.
isReadOnly
in interface com.aspose.ms.System.Collections.IList
public boolean isFixedSize()
Gets a value indicating whether the list has a fixed size.
isFixedSize
in interface com.aspose.ms.System.Collections.IList
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies the elements of the T:System.Collections.ICollection
to an T:System.Array
, starting at a particular T:System.Array
index.
copyTo
in interface com.aspose.ms.System.Collections.ICollection
array
- The one-dimensional array that is the destination of the elements copied from T:System.Collections.ICollection
.
The array must have zero-based indexing.index
- The zero-based index in array
at which copying begins.public void copyTo(AssociatedPerson[] 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.ICollection
T:System.Collections.ICollection
.public Object getSyncRoot()
Gets an object that can be used to synchronize access to the T:System.Collections.ICollection
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection
T:System.Collections.ICollection
.public boolean isSynchronized()
Gets a value indicating whether access to the T:System.Collections.ICollection
is synchronized (thread safe).
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection
T:System.Collections.ICollection
is synchronized (thread safe); otherwise, false.public com.aspose.ms.System.Collections.IEnumerator iterator()
Returns an enumerator that iterates through a collection.
public int addItem(Object o)
addItem
in interface com.aspose.ms.System.Collections.IList
public void removeItem(Object o)
removeItem
in interface com.aspose.ms.System.Collections.IList
public void insertItem(int i, Object o)
insertItem
in interface com.aspose.ms.System.Collections.IList
Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.