contains

fun contains(time: LocalTime, timeFormat: TimeFormat = TimeFormat.HOUR_24): Boolean

Returns whether time is directly selectable under timeFormat.

This predicate does not validate the item-list configuration; it only checks membership.


fun contains(hour: Int, minute: Int, timeFormat: TimeFormat = TimeFormat.HOUR_24): Boolean

Returns whether hour and minute are directly selectable under timeFormat.

hour is interpreted as hour-of-day in 0..23. Values outside the supported hour or minute ranges return false.


fun contains(displayHour: Int, minute: Int, period: TimePeriod): Boolean

Returns whether displayHour, minute, and period are directly selectable in 12-hour mode.

displayHour is interpreted as the format-hour shown to users in 1..12. Values outside the supported display-hour or minute ranges return false.