contains

fun contains(duration: Duration): Boolean

Returns whether duration is directly selectable.

This membership check does not validate the complete item configuration. Invalid, duplicate, empty, or unsatisfiable sources are rejected by coerceDuration and by DurationPicker composition.

Parameters

duration

The scalar duration to test.


fun contains(hours: Int, minutes: Int): Boolean

Returns whether hours and minutes form a directly selectable duration.

Invalid negative hours or minute values outside 0..59 return false.

Parameters

hours

The non-negative elapsed whole-hour component.

minutes

The minute-within-hour component.