
**Inheritance:**
java.lang.Object, [com.aspose.tasks.RecurrencePatternBase](../../com.aspose.tasks/recurrencepatternbase)
```
public class YearlyRecurrencePattern extends RecurrencePatternBase
```

Represents the set of parameters are used to create a yearly recurring task in a project.
## Constructors

| Constructor | Description |
| --- | --- |
| [YearlyRecurrencePattern()](#YearlyRecurrencePattern--) | Initializes a new instance of the [YearlyRecurrencePattern](../../com.aspose.tasks/yearlyrecurrencepattern) class. |
## Methods

| Method | Description |
| --- | --- |
| [getRepetition()](#getRepetition--) | Gets the recurring position pattern. |
| [setRepetition(YearlyRepetitionBase value)](#setRepetition-com.aspose.tasks.YearlyRepetitionBase-) | Sets the recurring position pattern. |
### YearlyRecurrencePattern() {#YearlyRecurrencePattern--}
```
public YearlyRecurrencePattern()
```


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

### getRepetition() {#getRepetition--}
```
public final YearlyRepetitionBase getRepetition()
```


Gets the recurring position pattern.

**Returns:**
[YearlyRepetitionBase](../../com.aspose.tasks/yearlyrepetitionbase) - the recurring position pattern.
### setRepetition(YearlyRepetitionBase value) {#setRepetition-com.aspose.tasks.YearlyRepetitionBase-}
```
public final void setRepetition(YearlyRepetitionBase value)
```


Sets the recurring position pattern.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [YearlyRepetitionBase](../../com.aspose.tasks/yearlyrepetitionbase) | the recurring position pattern. |

