RecurrenceRuleCollection

Inheritance: java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection

public class RecurrenceRuleCollection extends System.Collections.ObjectModel.Collection<RecurrenceRule>

Represents a collection of RecurrenceRule objects.


```

Corresponds to a collection of RRULE or EXRULE parts of a recurrence pattern.

```

Methods

Method Description
add() Adds a RecurrenceRule to the collection.
add(RecurrenceRule rule) Adds a RecurrenceRule to the collection.
get(int index) Gets or sets a ``` RecurrenceRule ``` from the collection.
set(int index, RecurrenceRule value) Gets or sets a ``` RecurrenceRule ``` from the collection.
equals(RecurrenceRuleCollection other) Determines whether the specified RecurrenceRuleCollection is equal to this instance.
equals(Object obj) Determines whether the specified Object is equal to this instance.
hashCode() Returns a hash code for this instance.

add()

public final RecurrenceRule add()

Adds a RecurrenceRule to the collection.

Returns: RecurrenceRule - The zero-based index of the newly added item.

add(RecurrenceRule rule)

public final int add(RecurrenceRule rule)

Adds a RecurrenceRule to the collection.

Parameters:

Parameter Type Description
rule RecurrenceRule The RecurrenceRule to add.

Returns: int - The zero-based index of the newly added item.

get(int index)

public RecurrenceRule get(int index)

Gets or sets a ``` RecurrenceRule ``` from the collection.

Parameters:

Parameter Type Description
index int a int.

Returns: RecurrenceRule - a com.aspose.email.RecurrenceRule object.

set(int index, RecurrenceRule value)

public void set(int index, RecurrenceRule value)

Gets or sets a ``` RecurrenceRule ``` from the collection.

Parameters:

Parameter Type Description
index int a int.
value RecurrenceRule a com.aspose.email.RecurrenceRule object.

equals(RecurrenceRuleCollection other)

public boolean equals(RecurrenceRuleCollection other)

Determines whether the specified RecurrenceRuleCollection is equal to this instance.

Parameters:

Parameter Type Description
other RecurrenceRuleCollection The RecurrenceRuleCollection to compare with this instance.

Returns: boolean - ``` true ``` if the specified RecurrenceRuleCollection is equal to this instance; otherwise, ``` false ```.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified Object is equal to this instance.

Parameters:

Parameter Type Description
obj java.lang.Object The Object to compare with this instance.

Returns: boolean - ``` true ``` if the specified Object is equal to this instance; otherwise, ``` false ```.

hashCode()

public int hashCode()

Returns a hash code for this instance.

Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.