As the title suggests, I want to define multiple levels of @IntDef. In java for example, one can do -
@IntDef({OPTIONS.OPTIONS_A.AA,
OPTIONS.OPTIONS_A.AB,
OPTIONS.OPTIONS_A.OPTIONS_AA.AAA,
OPTIONS.OPTIONS_A.OPTIONS_AA.AAB,
OPTIONS.OPTIONS_B.BA})
public @interface OPTIONS {
public @interface OPTIONS_A {
int AA = 0;
int AB = 1;
public @interface OPTIONS_AA {
int AAA = 10;
int AAB = 11;
}
}
public @interface OPTIONS_B {
int BA = 2;
}
}
How can I do that in Kotlin?