EventList

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericList

public class EventList implements System.Collections.Generic.IGenericList<CustomerEvent>

List of events for a contact

Constructors

Constructor Description
EventList()

Methods

Method Description
getAnniversary() Wedding anniversary
setAnniversary(Date value) Wedding anniversary
getBirthday() Birthday
setBirthday(Date value) Birthday
add(CustomerEvent value) Adds an item to the list.
contains(CustomerEvent value) Determines whether the list contains a specific value.
clear() Removes all items from the list.
indexOf(CustomerEvent value) Determines the index of a specific item in the list.
insert(int index, CustomerEvent value) Inserts an item to the list at the specified index.
remove(CustomerEvent value) Removes the first occurrence of a specific object from the list.
removeAt(int index) Removes the list item at the specified index.
get_Item(int index) Gets or sets the element at the specified index.
set_Item(int index, CustomerEvent value) Gets or sets the element at the specified index.
isReadOnly() Gets a value indicating whether the list is read-only.
copyTo(CustomerEvent[] array, int index) Copies the elements to an array, starting at a particular array index.
size() Gets the number of elements contained in the ICollection.
iterator() Returns an enumerator that iterates through a collection.
addItem(CustomerEvent value)
removeItem(CustomerEvent value)
insertItem(int index, CustomerEvent value)
indexOfItem(CustomerEvent value)
containsItem(CustomerEvent value)
copyToTArray(CustomerEvent[] array, int index)

EventList()

public EventList()

getAnniversary()

public final Date getAnniversary()

Wedding anniversary

Returns: java.util.Date

setAnniversary(Date value)

public final void setAnniversary(Date value)

Wedding anniversary

Parameters:

Parameter Type Description
value java.util.Date

getBirthday()

public final Date getBirthday()

Birthday

Returns: java.util.Date

setBirthday(Date value)

public final void setBirthday(Date value)

Birthday

Parameters:

Parameter Type Description
value java.util.Date

add(CustomerEvent value)

public final void add(CustomerEvent value)

Adds an item to the list.

Parameters:

Parameter Type Description
value CustomerEvent The object to add to the list.

contains(CustomerEvent value)

public final boolean contains(CustomerEvent value)

Determines whether the list contains a specific value.

Parameters:

Parameter Type Description
value CustomerEvent The object to locate in the list.

Returns: boolean - true if the object is found in the list; otherwise, false.

clear()

public final void clear()

Removes all items from the list.

indexOf(CustomerEvent value)

public final int indexOf(CustomerEvent value)

Determines the index of a specific item in the list.

Parameters:

Parameter Type Description
value CustomerEvent The Object to locate in the list.

Returns: int - The index of ``` value ``` if found in the list; otherwise, -1.

insert(int index, CustomerEvent value)

public final void insert(int index, CustomerEvent value)

Inserts an item to the list at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index at which ``` value ``` should be inserted.
value CustomerEvent The Object to insert into the list.

remove(CustomerEvent value)

public final boolean remove(CustomerEvent value)

Removes the first occurrence of a specific object from the list.

Parameters:

Parameter Type Description
value CustomerEvent The Object to remove from the list.

Returns: boolean

removeAt(int index)

public final void removeAt(int index)

Removes the list item at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index of the item to remove.

get_Item(int index)

public final CustomerEvent get_Item(int index)

Gets or sets the element at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index of the element to get or set.

Returns: CustomerEvent - The element at the specified index.

set_Item(int index, CustomerEvent value)

public final void set_Item(int index, CustomerEvent value)

Gets or sets the element at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index of the element to get or set.
value CustomerEvent

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether the list is read-only.

Returns: boolean - true if the list is read-only; otherwise, false.

copyTo(CustomerEvent[] array, int index)

public final void copyTo(CustomerEvent[] array, int index)

Copies the elements to an array, starting at a particular array index.

Parameters:

Parameter Type Description
array com.aspose.email.CustomerEvent[] The one-dimensional array that is the destination of the elements copied from collections. The array must have zero-based indexing.
index int The zero-based index in array at which copying begins.

size()

public final int size()

Gets the number of elements contained in the ICollection.

Returns: int - The number of elements contained in the ICollection.

iterator()

public final System.Collections.Generic.IGenericEnumerator<CustomerEvent> iterator()

Returns an enumerator that iterates through a collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.email.CustomerEvent> - An IEnumerator object that can be used to iterate through the collection.

addItem(CustomerEvent value)

public void addItem(CustomerEvent value)

Parameters:

Parameter Type Description
value CustomerEvent

removeItem(CustomerEvent value)

public boolean removeItem(CustomerEvent value)

Parameters:

Parameter Type Description
value CustomerEvent

Returns: boolean

insertItem(int index, CustomerEvent value)

public void insertItem(int index, CustomerEvent value)

Parameters:

Parameter Type Description
index int
value CustomerEvent

indexOfItem(CustomerEvent value)

public int indexOfItem(CustomerEvent value)

Parameters:

Parameter Type Description
value CustomerEvent

Returns: int

containsItem(CustomerEvent value)

public boolean containsItem(CustomerEvent value)

Parameters:

Parameter Type Description
value CustomerEvent

Returns: boolean

copyToTArray(CustomerEvent[] array, int index)

public void copyToTArray(CustomerEvent[] array, int index)

Parameters:

Parameter Type Description
array com.aspose.email.CustomerEvent[]
index int