public class EventList extends Object implements com.aspose.ms.System.Collections.Generic.IGenericList<CustomerEvent>
List of events for a contact
Constructor and Description |
---|
EventList() |
Modifier and Type | Method and Description |
---|---|
void |
add(CustomerEvent value)
Adds an item to the list.
|
void |
addItem(CustomerEvent value) |
void |
clear()
Removes all items from the list.
|
boolean |
contains(CustomerEvent value)
Determines whether the list contains a specific value.
|
boolean |
containsItem(CustomerEvent value) |
void |
copyTo(CustomerEvent[] array,
int index)
Copies the elements to an array, starting at a particular array index.
|
void |
copyToTArray(CustomerEvent[] array,
int index) |
CustomerEvent |
get_Item(int index)
Gets or sets the element at the specified index.
|
Date |
getAnniversary()
Wedding anniversary
|
Date |
getBirthday()
Birthday
|
int |
indexOf(CustomerEvent value)
Determines the index of a specific item in the list.
|
int |
indexOfItem(CustomerEvent value) |
void |
insert(int index,
CustomerEvent value)
Inserts an item to the list at the specified index.
|
void |
insertItem(int index,
CustomerEvent value) |
boolean |
isReadOnly()
Gets a value indicating whether the list is read-only.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<CustomerEvent> |
iterator()
Returns an enumerator that iterates through a collection.
|
boolean |
remove(CustomerEvent 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(CustomerEvent value) |
void |
set_Item(int index,
CustomerEvent value)
Gets or sets the element at the specified index.
|
void |
setAnniversary(Date value)
Wedding anniversary
|
void |
setBirthday(Date value)
Birthday
|
int |
size()
Gets the number of elements contained in the
ICollection . |
public final Date getAnniversary()
Wedding anniversary
public final void setAnniversary(Date value)
Wedding anniversary
public final Date getBirthday()
Birthday
public final void setBirthday(Date value)
Birthday
public final void add(CustomerEvent value)
Adds an item to the list.
value
- The object to add to the list.public final boolean contains(CustomerEvent 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<CustomerEvent>
public final int indexOf(CustomerEvent 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 void insert(int index, CustomerEvent 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 boolean remove(CustomerEvent 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<CustomerEvent>
index
- The zero-based index of the item to remove.public final CustomerEvent get_Item(int index)
Gets or sets the element at the specified index.
get_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericList<CustomerEvent>
index
- The zero-based index of the element to get or set.public final void set_Item(int index, CustomerEvent value)
Gets or sets the element at the specified index.
set_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericList<CustomerEvent>
index
- The zero-based index of the element to get or set.public final boolean isReadOnly()
Gets a value indicating whether the list is read-only.
isReadOnly
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<CustomerEvent>
public final void copyTo(CustomerEvent[] 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<CustomerEvent>
ICollection
.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<CustomerEvent> iterator()
Returns an enumerator that iterates through a collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<CustomerEvent>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<CustomerEvent>
iterator
in interface Iterable<CustomerEvent>
IEnumerator
object that can be used to iterate through the collection.public void addItem(CustomerEvent value)
addItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<CustomerEvent>
public boolean removeItem(CustomerEvent value)
removeItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<CustomerEvent>
public void insertItem(int index, CustomerEvent value)
insertItem
in interface com.aspose.ms.System.Collections.Generic.IGenericList<CustomerEvent>
public int indexOfItem(CustomerEvent value)
indexOfItem
in interface com.aspose.ms.System.Collections.Generic.IGenericList<CustomerEvent>
public boolean containsItem(CustomerEvent value)
containsItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<CustomerEvent>
public void copyToTArray(CustomerEvent[] array, int index)
copyToTArray
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<CustomerEvent>