jeer.blogg.se

Kotlin serializable example
Kotlin serializable example









kotlin serializable example

isSupported public boolean isSupported( TemporalUnit unit).Specified by: isSupported in interface ChronoLocalDate Specified by: isSupported in interface TemporalAccessor Parameters: field - the field to check, null returns false Returns: true if the field is supported on this date, false if not Whether the field is supported is determined by the field. Is obtained by invoking TemporalField.isSupportedBy(TemporalAccessor) If the field is not a ChronoField, then the result of this method If the field is a ChronoField then the query is implemented here.Īll other ChronoField instances will return false. This checks if this date can be queried for the specified field. Since: 1.8 See Also: Serialized FormĬhecks if the specified field is supported. Implementation Requirements: This class is immutable and thread-safe. The equals method should be used for comparisons. LocalDate may have unpredictable results and should be avoided. ( =), identity hash code, or synchronization) on instances of To be accurate will find the ISO-8601 approach unsuitable.Ĭlass use of identity-sensitive operations (including reference equality However, any application that makes use of historical dates, and requires them System, in which today's rules for leap years are applied for all time.įor most applications written today, the ISO-8601 rules are entirely suitable. It is equivalent to the proleptic Gregorian calendar The ISO-8601 calendar system is the modern civil calendar system used today It cannot represent an instant on the time-line without additional information Instead, it is a description of the date, as used for birthdays. This class does not store or represent a time or time-zone.

kotlin serializable example

Other date fields, such as day-of-year,ĭay-of-week and week-of-year, can also be accessed.įor example, the value "2nd October 2007" can be stored in a LocalDate. LocalDate is an immutable date-time object that represents a date, A date without a time-zone in the ISO-8601 calendar system,











Kotlin serializable example