Heads up!
Added in Fzzy Config 0.6.0
Create sets of toggle-able choices with ValidatedChoiceList
. This is a feature-flag-style setting, poll for active features using List#contains
.
This validation is a List<T>
, where T is your choice type. Like ValidatedList
, this implements List
, so can be used directly for list operations.
Easily create a choice list using toChoiceList
in ValidatedList / Set / Choice
.
ValidatedChoiceList<String> enabledFeatures = ValidatedList.ofString("dev_mode", "logging", "fail_fast", "compatibility_mode" //the total list of choices/features).toChoiceList(listOf("logging") //the enabled-by-default features);
The in-GUI popup with the available choices, each in an enabled or disabled state. Clicking on a choice flips its state.
Heads up!
See the documentation page here 🗗