Class DaysOfWeekDatatypeUtils
java.lang.Object
io.jmix.fullcalendarflowui.datatype.DaysOfWeekDatatypeUtils
INTERNAL.
-
Method Summary
Modifier and TypeMethodDescriptiongetOrderedByFirstDay
(DayOfWeek firstDay) Returns all days of week.sortByFirstDay
(Collection<DayOfWeek> daysOfWeek, DayOfWeek firstDay) Sorts provided collection in order that the provided day would have been the first day of week.
-
Method Details
-
getOrderedByFirstDay
Returns all days of week. The order starts from provided day. For instance, if the provided day isDayOfWeek.WEDNESDAY
, so the order will be the following:WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY, MONDAY, TUESDAY
- Parameters:
firstDay
- the day from which a week should start- Returns:
- days of week with the provided day as first
-
sortByFirstDay
Sorts provided collection in order that the provided day would have been the first day of week.- Parameters:
daysOfWeek
- collection of daysfirstDay
- the first day of week- Returns:
- sorted collection
-