| Author |
Nested interfaces for constants
|
Ostin Night
Greenhorn
Joined: Feb 15, 2007
Posts: 7
|
|
Dear java community, I had interface that have big amount of constants of different types: I decided to create nested interfaces in this interface to collect similar constants in groups: What do you think about this approach? Thanks.
|
SCJP 5.0 (95%)
|
 |
Stefan Wagner
Ranch Hand
Joined: Jun 02, 2003
Posts: 1923
|
|
Without context - I think there might be better ways, but we can't tell. Perhaps interfaces, enumerations? Or static final fields in User, Bank. How much code uses these constants where and how?
|
http://home.arcor.de/hirnstrom/bewerbung
|
 |
 |
|
|
subject: Nested interfaces for constants
|
|
|