enum DayOfWeek
source · line 6public
public enum DayOfWeek : Equals<DayOfWeek>, Compare<DayOfWeek>, Hash, ToString
- Supertype
Equals<DayOfWeek> - Supertype
Compare<DayOfWeek> - Supertype
Hash - Supertype
ToString
An ISO weekday, numbered Monday = 1 through Sunday = 7.
variant Sunday
source · line 34public
Sunday
ISO weekday 7, Sunday.
variant Tuesday
source · line 14public
Tuesday
ISO weekday 2, Tuesday.
function equals
source · line 46public
public override operator fun equals(other: DayOfWeek): Boolean
- Overrides
equals
Compares the stored value components for equality.
parameter other
source · line 46public
other: DayOfWeek
function compareTo
source · line 50public
public override operator fun compareTo(other: DayOfWeek): Long
- Overrides
compareTo
Orders values by their chronological or numeric value; only the result sign is significant.
parameter other
source · line 50public
other: DayOfWeek
property isoDayNumber
source · line 39public
public val isoDayNumber: Int
get: public read-only
The ISO weekday number, Monday = 1 through Sunday = 7.
getter get
source · line 39public
get(): Int
function toString
source · line 58public
public override fun toString(): String
- Overrides
toString
Returns the English weekday name.
variant Wednesday
source · line 18public
Wednesday
ISO weekday 3, Wednesday.
variant Thursday
source · line 22public
Thursday
ISO weekday 4, Thursday.
variant Saturday
source · line 30public
Saturday
ISO weekday 6, Saturday.
variant Friday
source · line 26public
Friday
ISO weekday 5, Friday.
variant Monday
source · line 10public
Monday
ISO weekday 1, Monday.
function hash
source · line 54public
public override fun hash(): Long
- Overrides
hash
Computes a hash consistent with component equality.