Toolbox
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Toolbox
core
/
com.michaelflisar.toolbox.extensions
/
YearWeek
Year
Week
data
class
YearWeek
(
val
year
:
Int
,
val
week
:
Int
,
val
firstDayOfWeek
:
DayOfWeek
=
LocalDateTimeSetup.current.firstDayOfWeek
)
:
Comparable
<
YearWeek
>
,
Parcelable
Members
Constructors
Year
Week
Link copied to clipboard
constructor
(
year
:
Int
,
week
:
Int
,
firstDayOfWeek
:
DayOfWeek
=
LocalDateTimeSetup.current.firstDayOfWeek
)
Properties
date
Link copied to clipboard
val
date
:
LocalDate
first
Day
Of
Week
Link copied to clipboard
val
firstDayOfWeek
:
DayOfWeek
week
Link copied to clipboard
val
week
:
Int
year
Link copied to clipboard
val
year
:
Int
Functions
between
Link copied to clipboard
fun
between
(
other
:
YearWeek
)
:
Int
compare
To
Link copied to clipboard
open
operator override
fun
compareTo
(
other
:
YearWeek
)
:
Int
next
Link copied to clipboard
fun
next
(
)
:
YearWeek
previous
Link copied to clipboard
fun
previous
(
)
:
YearWeek
to
Date
Link copied to clipboard
fun
toDate
(
dayOfWeek
:
DayOfWeek
)
:
LocalDate