public class PhoneNumberList extends Object implements com.aspose.ms.System.Collections.Generic.IGenericList<PhoneNumber>
List of phone numbers for a contact.
Constructor and Description |
---|
PhoneNumberList() |
Modifier and Type | Method and Description |
---|---|
void |
add(PhoneNumber value)
Adds an item to the list.
|
void |
addItem(PhoneNumber value) |
void |
clear()
Removes all items from the list.
|
boolean |
contains(PhoneNumber value)
Determines whether the list contains a specific value.
|
boolean |
containsItem(PhoneNumber value) |
void |
copyTo(PhoneNumber[] array,
int index)
Copies the elements to an array, starting at a particular array index.
|
void |
copyToTArray(PhoneNumber[] array,
int index) |
PhoneNumber |
get_Item(int index)
Gets or sets the element at the specified index.
|
String |
getAssistant()
Default assistant phone number
|
String |
getCallback()
Default callback phone number
|
String |
getCar()
Default car phone number
|
String |
getCompany()
Default company phone number
|
String |
getCustom()
Default custom phone category
|
String |
getFax()
Default fax number
|
String |
getHome()
Default home phone number
|
String |
getHomeFax()
Default home fax number
|
String |
getIsdn()
Default isdn phone number
|
String |
getMobile()
Default mobile phone number
|
String |
getPager()
Default pager number
|
String |
getPrefered()
Default primary phone number
|
String |
getRadio()
Default radio phone number
|
String |
getTelex()
Default telex
|
String |
getTtyTdd()
Default Tty/Tdd
|
String |
getWork()
Default work phone number
|
String |
getWorkFax()
Default work fax number
|
int |
indexOf(PhoneNumber value)
Determines the index of a specific item in the list.
|
int |
indexOfItem(PhoneNumber value) |
void |
insert(int index,
PhoneNumber value)
Inserts an item to the list at the specified index.
|
void |
insertItem(int index,
PhoneNumber value) |
boolean |
isReadOnly()
Gets a value indicating whether the list is read-only.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<PhoneNumber> |
iterator()
Returns an enumerator that iterates through a collection.
|
boolean |
remove(PhoneNumber 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(PhoneNumber value) |
void |
set_Item(int index,
PhoneNumber value)
Gets or sets the element at the specified index.
|
void |
setAssistant(String value)
Default assistant phone number
|
void |
setCallback(String value)
Default callback phone number
|
void |
setCar(String value)
Default car phone number
|
void |
setCompany(String value)
Default company phone number
|
void |
setCustom(String value)
Default custom phone category
|
void |
setFax(String value)
Default fax number
|
void |
setHome(String value)
Default home phone number
|
void |
setHomeFax(String value)
Default home fax number
|
void |
setIsdn(String value)
Default isdn phone number
|
void |
setMobile(String value)
Default mobile phone number
|
void |
setPager(String value)
Default pager number
|
void |
setPrefered(String value)
Default primary phone number
|
void |
setRadio(String value)
Default radio phone number
|
void |
setTelex(String value)
Default telex
|
void |
setTtyTdd(String value)
Default Tty/Tdd
|
void |
setWork(String value)
Default work phone number
|
void |
setWorkFax(String value)
Default work fax number
|
int |
size()
Gets the number of elements contained in the
ICollection . |
public final String getHome()
Default home phone number
public final void setHome(String value)
Default home phone number
public final String getWork()
Default work phone number
public final void setWork(String value)
Default work phone number
public final String getCustom()
Default custom phone category
public final void setCustom(String value)
Default custom phone category
public final String getPrefered()
Default primary phone number
public final void setPrefered(String value)
Default primary phone number
public final String getMobile()
Default mobile phone number
public final void setMobile(String value)
Default mobile phone number
public final String getFax()
Default fax number
public final void setFax(String value)
Default fax number
public final String getPager()
Default pager number
public final void setPager(String value)
Default pager number
public final String getCar()
Default car phone number
public final void setCar(String value)
Default car phone number
public final String getIsdn()
Default isdn phone number
public final void setIsdn(String value)
Default isdn phone number
public final String getTelex()
Default telex
public final void setTelex(String value)
Default telex
public final String getCallback()
Default callback phone number
public final void setCallback(String value)
Default callback phone number
public final String getRadio()
Default radio phone number
public final void setRadio(String value)
Default radio phone number
public final String getCompany()
Default company phone number
public final void setCompany(String value)
Default company phone number
public final String getTtyTdd()
Default Tty/Tdd
public final void setTtyTdd(String value)
Default Tty/Tdd
public final String getAssistant()
Default assistant phone number
public final void setAssistant(String value)
Default assistant phone number
public final String getWorkFax()
Default work fax number
public final void setWorkFax(String value)
Default work fax number
public final String getHomeFax()
Default home fax number
public final void setHomeFax(String value)
Default home fax number
public final void add(PhoneNumber value)
Adds an item to the list.
value
- The Object
to add to the list.public final void insert(int index, PhoneNumber 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 PhoneNumber get_Item(int index)
Gets or sets the element at the specified index.
get_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PhoneNumber>
index
- The zero-based index of the element to get or set.public final void set_Item(int index, PhoneNumber value)
Gets or sets the element at the specified index.
set_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PhoneNumber>
index
- The zero-based index of the element to get or set.public final boolean contains(PhoneNumber 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<PhoneNumber>
public final int indexOf(PhoneNumber 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(PhoneNumber 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<PhoneNumber>
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<PhoneNumber>
public final void copyTo(PhoneNumber[] 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<PhoneNumber>
ICollection
.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<PhoneNumber> iterator()
Returns an enumerator that iterates through a collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<PhoneNumber>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<PhoneNumber>
iterator
in interface Iterable<PhoneNumber>
IEnumerator
object that can be used to iterate through the collection.public void addItem(PhoneNumber value)
addItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PhoneNumber>
public boolean removeItem(PhoneNumber value)
removeItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PhoneNumber>
public void insertItem(int index, PhoneNumber value)
insertItem
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PhoneNumber>
public int indexOfItem(PhoneNumber value)
indexOfItem
in interface com.aspose.ms.System.Collections.Generic.IGenericList<PhoneNumber>
public boolean containsItem(PhoneNumber value)
containsItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PhoneNumber>
public void copyToTArray(PhoneNumber[] array, int index)
copyToTArray
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<PhoneNumber>