Defines an iCalendar sub-component representing a timezone observance. Class made abstract such that only Standard and Daylight instances are valid.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DAYLIGHT
Token for daylight observance. |
| private OffsetDateTime | |
| private OffsetDateTime | |
| private OffsetDateTime[] | |
| private long[] | |
| private static final long | |
| public static final String | STANDARD
one of 'standardc' or 'daylightc' MUST occur and each MAY occur more than once. |
| private static final DateFormat | |
| private static final String | UTC_PATTERN
Used for parsing times in a UTC date-time representation. |
| Access | Constructor and Description |
|---|---|
| protected | Observance(final String
the name of this observance component name)Constructs a timezone observance with the specified name and no properties. |
| protected | Observance(final String
the name of the time type name, final PropertyList a list of properties properties)Constructor protected to enforce use of sub-classes from this library. |
| Modifier and Type | Method and Description |
|---|---|
| private OffsetDateTime | Returns: a cached onset date or null if no cached onset is applicable for the specified dateReturns a cached onset for the specified date. |
| public final OffsetDateTime | Returns: the latest applicable observance date or null if there is no applicable observance onset for the specified datethe latest date that an observance onset may occur date)Returns the latest applicable onset of this observance for the specified date. |
| public ValidationResult | validate(final boolean
indicates whether to validate the component's properties recurse)Implements abstract net. Perform validation on a component. |
| DAYLIGHT | back to summary |
|---|---|
| public static final String DAYLIGHT Token for daylight observance. | |
| initialOnset | back to summary |
|---|---|
| private OffsetDateTime initialOnset | |
| onsetLimit | back to summary |
|---|---|
| private OffsetDateTime onsetLimit | |
| onsetsDates | back to summary |
|---|---|
| private OffsetDateTime[] onsetsDates | |
| onsetsMillisec | back to summary |
|---|---|
| private long[] onsetsMillisec | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| STANDARD | back to summary |
|---|---|
| public static final String STANDARD one of 'standardc' or 'daylightc' MUST occur and each MAY occur more than once. | |
| UTC_FORMAT | back to summary |
|---|---|
| private static final DateFormat UTC_FORMAT | |
| UTC_PATTERN | back to summary |
|---|---|
| private static final String UTC_PATTERN Used for parsing times in a UTC date-time representation. | |
| Observance | back to summary |
|---|---|
| protected Observance(final String name) Constructs a timezone observance with the specified name and no properties.
| |
| Observance | back to summary |
|---|---|
| protected Observance(final String name, final PropertyList properties) Constructor protected to enforce use of sub-classes from this library.
| |
| getCachedOnset | back to summary |
|---|---|
| private OffsetDateTime getCachedOnset(final Temporal date) Returns a cached onset for the specified date.
| |
| getLatestOnset | back to summary |
|---|---|
| public final OffsetDateTime getLatestOnset(final Temporal date) Returns the latest applicable onset of this observance for the specified date.
| |
| validate | back to summary |
|---|---|
| public ValidationResult validate(final boolean recurse) throws ValidationException Implements abstract net. Doc from net. Perform validation on a component.
| |