π₯ Breaking changes
DayOfWeek
:- deprecated method
of()
has been removed, useDayOfWeek::from()
instead - the following deprecated methods have been removed, use enum values instead:
DayOfWeek::monday()
βDayOfWeek::MONDAY
DayOfWeek::tuesday()
βDayOfWeek::TUESDAY
DayOfWeek::wednesday()
βDayOfWeek::WEDNESDAY
DayOfWeek::thursday()
βDayOfWeek::THURSDAY
DayOfWeek::friday()
βDayOfWeek::FRIDAY
DayOfWeek::saturday()
βDayOfWeek::SATURDAY
DayOfWeek::sunday()
βDayOfWeek::SUNDAY
- deprecated method
getValue()
has been removed, use$dayOfWeek->value
instead - deprecated method
is()
has been removed, compare values with$dayOfWeek
or$dayOfWeek->value
instead - deprecated method
isEqualTo()
has been removed, use strict equality===
betweenDayOfWeek
instances instead.
- deprecated method
DefaultClock
:- deprecated method
travel()
has been removed, usetravelTo()
instead
- deprecated method
LocalDate
:- deprecated method
getDay()
has been removed, usegetDayOfMonth()
instead getMonth()
now returns aMonth
enum; usegetMonthValue()
if you want the month number
- deprecated method
LocalDateTime
:- deprecated method
getDay()
has been removed, usegetDayOfMonth()
instead getMonth()
now returns aMonth
enum; usegetMonthValue()
if you want the month number
- deprecated method
Month
:- deprecated method
of()
has been removed, useMonth::from()
instead - deprecated method
getAll()
has been removed, useMonth::cases()
instead - deprecated method
getValue()
has been removed, use$month->value
instead - deprecated method
is()
has been removed, compare values with$month
or$month->value
instead - deprecated method
isEqualTo()
has been removed, use strict equality===
betweenMonth
instances instead
- deprecated method
MonthDay
:- deprecated method
getDay()
has been removed, usegetDayOfMonth()
instead getMonth()
now returns aMonth
enum; usegetMonthValue()
if you want the month number
- deprecated method
YearMonth
:getMonth()
now returns aMonth
enum; usegetMonthValue()
if you want the month number
ZonedDateTime
:- deprecated method
getDay()
has been removed, usegetDayOfMonth()
instead getMonth()
now returns aMonth
enum; usegetMonthValue()
if you want the month number
- deprecated method
π§ Improvements
- Methods returning
int
are now type-annotated with int ranges