Temporal
Temporal value
and provides support for all corresponding representations in the specification.
The recommended Temporal implementations for use with iCal4j are as follows:
LocalDate - represents an iCalendar DATE value as defined in section 3.3.4 of RFC5545LocalDateTime - represents an iCalendar FORM #1: DATE-TIME value as defined in section 3.3.5 of RFC5545java.time.Instant - represents an iCalendar FORM #2: DATE-TIME value as defined in section 3.3.5 of RFC5545ZonedDateTime - represents an iCalendar FORM #3: DATE-TIME value as defined in section 3.3.5 of RFC5545ZoneId for calculations such as
recurrence inclusions and other date-based comparisons. Use TemporalAdapter#isFloating(Temporal) to determine floating
instances.
| Modifier and Type | Field and Description |
|---|---|
| private transient volatile T | |
| private final transient TimeZoneRegistry | timeZoneRegistry
Provides localized timezone definitions for an iCalendar object. |
| private final TzId | |
| private final String | valueString
The iCalendar-compliant string representation of a |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private | |
| private | TemporalAdapter(String
a string representation of a floating date/time value value, TzId a zone id to apply to the parsed value tzId)Support lazy parsing of value string using a zone id to allow full initialisation of
|
| private | TemporalAdapter(String
a string representation of a floating date/time value value, TzId a zone id to apply to the parsed value tzId, TimeZoneRegistry timezone definitions timeZoneRegistry)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static TemporalAdapter | Returns: a temporal adapter instance equivalent to the specified date/time valuea date/time instance date)
References Deprecated
Date is deprecated or references (maybe indirectly) at least one deprecated element.
This method provides support for conversion of legacy |
| public T | |
| public int | |
| public static <T extends Temporal> boolean | |
| public static <T extends Temporal> boolean | |
| public static boolean | Returns: true if the temporal type has DATE-TIME precision, otherwise falseIndicates whether the temporal type represents a date/time value. |
| public static boolean | Returns: true if the temporal type is floating, otherwise falseIndicates whether the temporal type represents a "floating" date/time value. |
| public static boolean | |
| public static <T extends Temporal> TemporalAdapter | |
| public static <T extends Temporal> TemporalAdapter | |
| public static TemporalAdapter | |
| public static TemporalAdapter | |
| public static TemporalAdapter | parse(String
a string representing a floating temporal value value, TzId a timezone applied to the parsed value tzId, TimeZoneRegistry timezone definitions timeZoneRegistry)
|
| private String | Returns: a stringa temporal value temporal)Return an ISO8601 instant string for the specified temporal value. |
| public ZonedDateTime | |
| public ZonedDateTime | |
| public static ZonedDateTime | |
| public String | |
| public String | |
| private String | |
| private String | |
| private String | |
| private String |
| temporal | back to summary |
|---|---|
| private transient volatile T temporal | |
| timeZoneRegistry | back to summary |
|---|---|
| private final transient TimeZoneRegistry timeZoneRegistry Provides localized timezone definitions for an iCalendar object. | |
| tzId | back to summary |
|---|---|
| private final TzId tzId An iCalendar | |
| valueString | back to summary |
|---|---|
| private final String valueString The iCalendar-compliant string representation of a | |
| TemporalAdapter | back to summary |
|---|---|
| public TemporalAdapter(TemporalAdapter<T> adapter) | |
| TemporalAdapter | back to summary |
|---|---|
| public TemporalAdapter(T temporal) | |
| TemporalAdapter | back to summary |
|---|---|
| public TemporalAdapter(T temporal, TimeZoneRegistry timeZoneRegistry) | |
| TemporalAdapter | back to summary |
|---|---|
| private TemporalAdapter(String valueString) | |
| TemporalAdapter | back to summary |
|---|---|
| private TemporalAdapter(String value, TzId tzId) Support lazy parsing of value string using a zone id to allow full initialisation of
| |
| TemporalAdapter | back to summary |
|---|---|
private TemporalAdapter(String value, TzId tzId, TimeZoneRegistry timeZoneRegistry)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| from | back to summary |
|---|---|
| public static TemporalAdapter References Deprecated
See corresponding docs for further information. This method provides support for conversion of legacy
| |
| getTemporal | back to summary |
|---|---|
public T getTemporal()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isAfter | back to summary |
|---|---|
| public static <T extends Temporal> boolean isAfter(T date1, T date2) | |
| isBefore | back to summary |
|---|---|
| public static <T extends Temporal> boolean isBefore(T date1, T date2) | |
| isDateTimePrecision | back to summary |
|---|---|
| public static boolean isDateTimePrecision(Temporal date) Indicates whether the temporal type represents a date/time value.
| |
| isFloating | back to summary |
|---|---|
| public static boolean isFloating(Temporal date) Indicates whether the temporal type represents a "floating" date/time value.
| |
| isUtc | back to summary |
|---|---|
| public static boolean isUtc(Temporal date) Indicates whether the temporal type represents a UTC date/time value. A temporal is defined as UTC if it matches any of the following: - does not have associated zone information (e.g. Instant or OffsetDateTime) - where offset is supported the offset must be zero
| |
| parse | back to summary |
|---|---|
| public static <T extends Temporal> TemporalAdapter Parse a string representation of a temporal value.
| |
| parse | back to summary |
|---|---|
public static <T extends Temporal> TemporalAdapter
| |
| parse | back to summary |
|---|---|
| public static TemporalAdapter Parse a string representation of a temporal value applicable to the specified timezone.
| |
| parse | back to summary |
|---|---|
| public static TemporalAdapter Parse a string representation of a temporal value applicable to the specified timezone.
| |
| parse | back to summary |
|---|---|
public static TemporalAdapter
| |
| toInstantString | back to summary |
|---|---|
| private String toInstantString(T temporal) Return an ISO8601 instant string for the specified temporal value.
| |
| toLocalTime | back to summary |
|---|---|
| public ZonedDateTime toLocalTime() | |
| toLocalTime | back to summary |
|---|---|
| public ZonedDateTime toLocalTime(ZoneId zoneId) | |
| toLocalTime | back to summary |
|---|---|
| public static ZonedDateTime toLocalTime(Temporal temporal, ZoneId zoneId) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toString | back to summary |
|---|---|
| public String toString(ZoneId zoneId) | |
| toString | back to summary |
|---|---|
| private String toString(T temporal) | |
| toString | back to summary |
|---|---|
| private String toString(T temporal, ZoneId zoneId) Return a string representation of the given temporal value, using the specified zone ID for applicable values (i.e. values that support the DATE-TIME format). | |
| toString | back to summary |
|---|---|
| private String toString(CalendarDateFormat format, T temporal) | |
| toString | back to summary |
|---|---|
| private String toString(CalendarDateFormat format, ZoneId zoneId, T temporal) | |