I don't think this is possible, but I figured I would ask anyway. Is it possible to chain together multiple enum class into a builder pattern sort of deal
For instance I have something like this
enum class Page {
PAGE_1,
PAGE_2;
}
enum class Page1Section {
SECTION_A,
SECTION_B
}
enum class Page2Section {
SECTION_1,
SECTION_2
}
With my end goal being something like
Page.PAGE_1.SECTION_A.build()
and if I selected PAGE_2 then
Page.PAGE_2.SECTION_1.build()
Maybe this would be better in sealed classes
If I selected PAGE_1, if I were to type
.
then I would get the list of Page1Section's then if I click
.
again perhaps another list of items