Is there a java convention for packing enums?

Is there an agreement for packing? if there is no best practice? Should I put them all in one package "myapp.enum" or should I put each listing in the corresponding package?

+4
source share
2 answers

enumin Java, it should be considered like any other class, and probably should be placed in the package that is most associated with them. There is no advantage to having a separate package of "transfers".

+9
source

enum - , enum. (Model, View, Controller,..). . - , : mycompany.comcom.mycompany.myapp...

0

All Articles