CycleButtonState
Parameters
nonempty unique option order.
initially selected member of values.
Type Parameters
immutable option type.
Creates state from one caller-owned collection snapshot and explicit display conversion.
Collection iteration order defines cycling order. The collection is copied before validation and is not retained. The conversion is retained for the state lifetime, runs only on the creating thread, and propagates its exceptions unchanged when invoked.
Parameters
nonempty unique option order.
initially selected member of values.
synchronous display conversion used by format.
Throws
when values is empty or contains equal members, or when initialValue is outside values.
Creates state selecting the first member of a validated nonempty values list.
Parameters
nonempty unique option order formatted through Any.toString.
Throws
when values is empty or contains equal members.