TimeOfWeekKt

public final class TimeOfWeekKt


Summary

Public methods

static final @NonNull TimeOfWeek
timeOfWeek(
    @NonNull DayOfWeek day,
    @NonNull LocalTime localTime,
    @ExtensionFunctionType Function1<@NonNull TimeOfWeek.BuilderUnit> actions
)

Builds a new TimeOfWeek.

Public methods

timeOfWeek

public static final @NonNull TimeOfWeek timeOfWeek(
    @NonNull DayOfWeek day,
    @NonNull LocalTime localTime,
    @ExtensionFunctionType Function1<@NonNull TimeOfWeek.BuilderUnit> actions
)

Builds a new TimeOfWeek.

Parameters
@NonNull DayOfWeek day

the day of the week

@NonNull LocalTime localTime

the time in 24 hours format

@ExtensionFunctionType Function1<@NonNull TimeOfWeek.BuilderUnit> actions

the actions to apply to the TimeOfWeek.Builder

Returns
@NonNull TimeOfWeek

the constructed TimeOfWeek