
**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](../../com.aspose.email/recurrencerule) objects.

--------------------



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


## Methods

| Method | Description |
| --- | --- |
| [add()](#add--) | Adds a [RecurrenceRule](../../com.aspose.email/recurrencerule) to the collection. |
| [add(RecurrenceRule rule)](#add-com.aspose.email.RecurrenceRule-) | Adds a [RecurrenceRule](../../com.aspose.email/recurrencerule) to the collection. |
| [addItem(T arg0)](#addItem-T-) |  |
| [clear()](#clear--) |  |
| [containsItem(T arg0)](#containsItem-T-) |  |
| [copyToTArray(T[] arg0, int arg1)](#copyToTArray-T---int-) |  |
| [equals(RecurrenceRuleCollection other)](#equals-com.aspose.email.RecurrenceRuleCollection-) | Determines whether the specified [RecurrenceRuleCollection](../../com.aspose.email/recurrencerulecollection) is equal to this instance. |
| [equals(Object obj)](#equals-java.lang.Object-) | Determines whether the specified Object is equal to this instance. |
| [get(int index)](#get-int-) | Gets or sets a  RecurrenceRule  from the collection. |
| [getClass()](#getClass--) |  |
| [getICollection()](#getICollection--) |  |
| [getIList()](#getIList--) |  |
| [getSyncRoot()](#getSyncRoot--) |  |
| [get_Item(int arg0)](#get-Item-int-) |  |
| [hashCode()](#hashCode--) | Returns a hash code for this instance. |
| [indexOfItem(T arg0)](#indexOfItem-T-) |  |
| [insertItem(int arg0, T arg1)](#insertItem-int-T-) |  |
| [isReadOnly()](#isReadOnly--) |  |
| [iterator()](#iterator--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [removeAt(int arg0)](#removeAt-int-) |  |
| [removeItem(T arg0)](#removeItem-T-) |  |
| [set(int index, RecurrenceRule value)](#set-int-com.aspose.email.RecurrenceRule-) | Gets or sets a  RecurrenceRule  from the collection. |
| [set_Item(int arg0, T arg1)](#set-Item-int-T-) |  |
| [size()](#size--) |  |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### add() {#add--}
```
public final RecurrenceRule add()
```


Adds a [RecurrenceRule](../../com.aspose.email/recurrencerule) to the collection.

**Returns:**
[RecurrenceRule](../../com.aspose.email/recurrencerule) - The zero-based index of the newly added item.
### add(RecurrenceRule rule) {#add-com.aspose.email.RecurrenceRule-}
```
public final int add(RecurrenceRule rule)
```


Adds a [RecurrenceRule](../../com.aspose.email/recurrencerule) to the collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| rule | [RecurrenceRule](../../com.aspose.email/recurrencerule) | The [RecurrenceRule](../../com.aspose.email/recurrencerule) to add. |

**Returns:**
int - The zero-based index of the newly added item.
### addItem(T arg0) {#addItem-T-}
```
public void addItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

### clear() {#clear--}
```
public void clear()
```




### containsItem(T arg0) {#containsItem-T-}
```
public boolean containsItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
boolean
### copyToTArray(T[] arg0, int arg1) {#copyToTArray-T---int-}
```
public void copyToTArray(T[] arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T[] |  |
| arg1 | int |  |

### equals(RecurrenceRuleCollection other) {#equals-com.aspose.email.RecurrenceRuleCollection-}
```
public boolean equals(RecurrenceRuleCollection other)
```


Determines whether the specified [RecurrenceRuleCollection](../../com.aspose.email/recurrencerulecollection) is equal to this instance.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| other | [RecurrenceRuleCollection](../../com.aspose.email/recurrencerulecollection) | The [RecurrenceRuleCollection](../../com.aspose.email/recurrencerulecollection) to compare with this instance. |

**Returns:**
boolean -  true  if the specified [RecurrenceRuleCollection](../../com.aspose.email/recurrencerulecollection) is equal to this instance; otherwise,  false .
### equals(Object obj) {#equals-java.lang.Object-}
```
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 .
### get(int index) {#get-int-}
```
public RecurrenceRule get(int index)
```


Gets or sets a  RecurrenceRule  from the collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | a int. |

**Returns:**
[RecurrenceRule](../../com.aspose.email/recurrencerule) - a [RecurrenceRule](../../com.aspose.email/recurrencerule) object.
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getICollection() {#getICollection--}
```
public System.Collections.ICollection getICollection()
```




**Returns:**
com.aspose.ms.System.Collections.ICollection
### getIList() {#getIList--}
```
public System.Collections.IList getIList()
```




**Returns:**
com.aspose.ms.System.Collections.IList
### getSyncRoot() {#getSyncRoot--}
```
public Object getSyncRoot()
```




**Returns:**
java.lang.Object
### get_Item(int arg0) {#get-Item-int-}
```
public T get_Item(int arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |

**Returns:**
T
### hashCode() {#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.
### indexOfItem(T arg0) {#indexOfItem-T-}
```
public int indexOfItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
int
### insertItem(int arg0, T arg1) {#insertItem-int-T-}
```
public void insertItem(int arg0, T arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | T |  |

### isReadOnly() {#isReadOnly--}
```
public boolean isReadOnly()
```




**Returns:**
boolean
### iterator() {#iterator--}
```
public System.Collections.Generic.IGenericEnumerator<T> iterator()
```




**Returns:**
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T>
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### removeAt(int arg0) {#removeAt-int-}
```
public void removeAt(int arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |

### removeItem(T arg0) {#removeItem-T-}
```
public boolean removeItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
boolean
### set(int index, RecurrenceRule value) {#set-int-com.aspose.email.RecurrenceRule-}
```
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](../../com.aspose.email/recurrencerule) | a [RecurrenceRule](../../com.aspose.email/recurrencerule) object. |

### set_Item(int arg0, T arg1) {#set-Item-int-T-}
```
public void set_Item(int arg0, T arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | T |  |

### size() {#size--}
```
public int size()
```




**Returns:**
int
### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

