
**Inheritance:**
java.lang.Object, [com.aspose.email.RecurrencePattern](../../com.aspose.email/recurrencepattern)
```
public class YearlyRecurrencePattern extends RecurrencePattern
```

Represents a recurrence pattern of yearly recurrence type.
## Constructors

| Constructor | Description |
| --- | --- |
| [YearlyRecurrencePattern()](#YearlyRecurrencePattern--) | Initializes a new instance of the [YearlyRecurrencePattern](../../com.aspose.email/yearlyrecurrencepattern) class. |
| [YearlyRecurrencePattern(int startOffset, int startMonth)](#YearlyRecurrencePattern-int-int-) | Initializes a new instance of the [YearlyRecurrencePattern](../../com.aspose.email/yearlyrecurrencepattern) class. |
| [YearlyRecurrencePattern(int startDay, int startMonth, int startPosition)](#YearlyRecurrencePattern-int-int-int-) | Initializes a new instance of the [YearlyRecurrencePattern](../../com.aspose.email/yearlyrecurrencepattern) class. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getEndDate()](#getEndDate--) | Gets or sets the end date. |
| [getInterval()](#getInterval--) | Gets or sets the number of recurrence units. |
| [getOccurs()](#getOccurs--) | Gets or sets the number of occurrences of the recurrence pattern. |
| [getStartDay()](#getStartDay--) | Gets or sets the start day. |
| [getStartMonth()](#getStartMonth--) | Gets or sets the start month. |
| [getStartOffset()](#getStartOffset--) | Gets or sets the start offset. |
| [getStartPosition()](#getStartPosition--) | Gets or sets the start position. |
| [getWeekStart()](#getWeekStart--) | Gets or sets the week start. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setEndDate(Date value)](#setEndDate-java.util.Date-) | Gets or sets the end date. |
| [setInterval(int value)](#setInterval-int-) | Gets or sets the number of recurrence units. |
| [setOccurs(int value)](#setOccurs-int-) | Gets or sets the number of occurrences of the recurrence pattern. |
| [setStartDay(int value)](#setStartDay-int-) | Gets or sets the start day. |
| [setStartMonth(int value)](#setStartMonth-int-) | Gets or sets the start month. |
| [setStartOffset(int value)](#setStartOffset-int-) | Gets or sets the start offset. |
| [setStartPosition(int value)](#setStartPosition-int-) | Gets or sets the start position. |
| [setWeekStart(int value)](#setWeekStart-int-) | Gets or sets the week start. |
| [toString()](#toString--) | Returns a string that represents the current object. |
| [to_RecurrencePattern(String value)](#to-RecurrencePattern-java.lang.String-) | Converts string representation of recurrence pattern in ICalendar format to object |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### YearlyRecurrencePattern() {#YearlyRecurrencePattern--}
```
public YearlyRecurrencePattern()
```


Initializes a new instance of the [YearlyRecurrencePattern](../../com.aspose.email/yearlyrecurrencepattern) class.

### YearlyRecurrencePattern(int startOffset, int startMonth) {#YearlyRecurrencePattern-int-int-}
```
public YearlyRecurrencePattern(int startOffset, int startMonth)
```


Initializes a new instance of the [YearlyRecurrencePattern](../../com.aspose.email/yearlyrecurrencepattern) class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startOffset | int | The start offset. |
| startMonth | int | The start month. |

### YearlyRecurrencePattern(int startDay, int startMonth, int startPosition) {#YearlyRecurrencePattern-int-int-int-}
```
public YearlyRecurrencePattern(int startDay, int startMonth, int startPosition)
```


Initializes a new instance of the [YearlyRecurrencePattern](../../com.aspose.email/yearlyrecurrencepattern) class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startDay | int | The start day. |
| startMonth | int | The start month. |
| startPosition | int | The start position. |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getEndDate() {#getEndDate--}
```
public final Date getEndDate()
```


Gets or sets the end date.

Value: The end date.

**Returns:**
java.util.Date
### getInterval() {#getInterval--}
```
public final int getInterval()
```


Gets or sets the number of recurrence units.

Value: The number of recurrence units.

**Returns:**
int
### getOccurs() {#getOccurs--}
```
public final int getOccurs()
```


Gets or sets the number of occurrences of the recurrence pattern.

Value: The number of occurrences.

**Returns:**
int
### getStartDay() {#getStartDay--}
```
public final int getStartDay()
```


Gets or sets the start day.

Value: The start day.

**Returns:**
int
### getStartMonth() {#getStartMonth--}
```
public final int getStartMonth()
```


Gets or sets the start month.

Value: The start month.

**Returns:**
int
### getStartOffset() {#getStartOffset--}
```
public final int getStartOffset()
```


Gets or sets the start offset.

Value: The start offset.

**Returns:**
int
### getStartPosition() {#getStartPosition--}
```
public final int getStartPosition()
```


Gets or sets the start position.

Value: The start position.

**Returns:**
int
### getWeekStart() {#getWeekStart--}
```
public final int getWeekStart()
```


Gets or sets the week start.

Value: The week start.

**Returns:**
int
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




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




### setEndDate(Date value) {#setEndDate-java.util.Date-}
```
public final void setEndDate(Date value)
```


Gets or sets the end date.

Value: The end date.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.util.Date |  |

### setInterval(int value) {#setInterval-int-}
```
public final void setInterval(int value)
```


Gets or sets the number of recurrence units.

Value: The number of recurrence units.

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

### setOccurs(int value) {#setOccurs-int-}
```
public final void setOccurs(int value)
```


Gets or sets the number of occurrences of the recurrence pattern.

Value: The number of occurrences.

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

### setStartDay(int value) {#setStartDay-int-}
```
public final void setStartDay(int value)
```


Gets or sets the start day.

Value: The start day.

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

### setStartMonth(int value) {#setStartMonth-int-}
```
public final void setStartMonth(int value)
```


Gets or sets the start month.

Value: The start month.

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

### setStartOffset(int value) {#setStartOffset-int-}
```
public final void setStartOffset(int value)
```


Gets or sets the start offset.

Value: The start offset.

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

### setStartPosition(int value) {#setStartPosition-int-}
```
public final void setStartPosition(int value)
```


Gets or sets the start position.

Value: The start position.

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

### setWeekStart(int value) {#setWeekStart-int-}
```
public final void setWeekStart(int value)
```


Gets or sets the week start.

Value: The week start.

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

### toString() {#toString--}
```
public String toString()
```


Returns a string that represents the current object.

**Returns:**
java.lang.String - A string that represents the current object.
### to_RecurrencePattern(String value) {#to-RecurrencePattern-java.lang.String-}
```
public static RecurrencePattern to_RecurrencePattern(String value)
```


Converts string representation of recurrence pattern in ICalendar format to object

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | Returns RecurrencePattern object |

**Returns:**
[RecurrencePattern](../../com.aspose.email/recurrencepattern)
### 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 |  |

