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
T:System.Collections.ICollection . |
public Date getAnniversary()
Wedding anniversary
public void setAnniversary(Date value)
Wedding anniversary
public Date getBirthday()
Birthday
public void setBirthday(Date value)
Birthday
public void add(CustomerEvent value)
Adds an item to the list.
value
- The object to add to the list.public boolean contains(CustomerEvent 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<CustomerEvent>
public int indexOf(CustomerEvent 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, 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 boolean remove(CustomerEvent value)
Removes the first occurrence of a specific object from the list.
value
- The 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<CustomerEvent>
index
- The zero-based index of the item to remove.public 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 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 boolean isReadOnly()
Gets a value indicating whether the list is read-only.
isReadOnly
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<CustomerEvent>
public 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 int size()
Gets the number of elements contained in the T:System.Collections.ICollection
.
size
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<CustomerEvent>
T:System.Collections.ICollection
.public 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>
T:System.Collections.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>
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.