oωo (owo-lib)

oωo (owo-lib)

23M Downloads

[Feature Request] [owo-config] Enum list support

Chailotl opened this issue · 0 comments

commented

You can have enums, and you can have lists, but could we also have enum lists too?

@Config(name = "my-config", wrapperName = "MyConfig")
public class MyConfigModel {
    public List<Choices> anEnumListOption = Arrays.asList(
        Choices.A_CHOICE,
        Choices.A_CHOICE,
        Choices.ANOTHER_CHOICE,
        Choices.A_CHOICE
    );

    public enum Choices {
        A_CHOICE, ANOTHER_CHOICE;
    }
}