# UpdateSchedule

Import: `import com.install4j.api.update.UpdateSchedule;`

```java
public final enum UpdateSchedule
```

Enumeration class that represents the different update schedules. These values are used in the
[`UpdateScheduleRegistry`](UpdateScheduleRegistry.md) class.

## Constants

### ON_EVERY_START

[`UpdateScheduleRegistry.checkAndReset`](UpdateScheduleRegistry.md#checkandreset) always returns true

### DAILY

[`UpdateScheduleRegistry.checkAndReset`](UpdateScheduleRegistry.md#checkandreset) always returns true after more than one day has passed since
the last update

### WEEKLY

[`UpdateScheduleRegistry.checkAndReset`](UpdateScheduleRegistry.md#checkandreset) always returns true after more than one week has passed since
the last update

### MONTHLY

[`UpdateScheduleRegistry.checkAndReset`](UpdateScheduleRegistry.md#checkandreset) always returns true after more than one month has passed since
the last update

### NEVER

[`UpdateScheduleRegistry.checkAndReset`](UpdateScheduleRegistry.md#checkandreset) always returns false

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`values()`](#values) | `UpdateSchedule[]` |  |
| [`valueOf(String)`](#valueof-string) | `UpdateSchedule` |  |
| [`getById(String)`](#getbyid-string) | `UpdateSchedule` | Returns the `UpdateSchedule` for a string ID. |
| [`getId()`](#getid) | `String` | Returns the string ID for the `UpdateSchedule`. |
| [`toString()`](#tostring) | `String` |  |

### values()

```java
public static UpdateSchedule[] values()
```

### valueOf(String)

```java
public static UpdateSchedule valueOf(String name)
```

### getById(String)

```java
public static UpdateSchedule getById(String id)
```

Returns the `UpdateSchedule` for a string ID. String IDs for  `UpdateSchedule`s are returned by
[`UpdateSchedule.getId`](UpdateSchedule.md#getid)}.


**Parameters:**

- `id` — the ID

**Returns:** the `UpdateSchedule` or null if the ID is invalid

### getId()

```java
public String getId()
```

Returns the string ID for the `UpdateSchedule`. This string value can be saved and restored later with the
[`UpdateSchedule.getById`](UpdateSchedule.md#getbyid-string)} method.


**Returns:** the ID

### toString()

```java
public String toString()
```

## Fields

| Field | Type | Description |
|---|---|---|
| [ALL_VALUES](#all-values) | `UpdateSchedule[]` | All values of `UpdateSchedule` for use in a drop-down list. |

### ALL_VALUES

```java
@Deprecated public static final UpdateSchedule[] ALL_VALUES
```

> **⚠ Deprecated.**

All values of `UpdateSchedule` for use in a drop-down list.

Not needed since this class became an enum in install4j 6.

