I'm writing a Java library that has a simple interface, but a lot going on behind the scenes. In order to keep the API surface small, I've kept the library as one large package (so that I can make most classes package protected). Now that the library has grown, it's become a little difficult to find the class you're looking for.
Is there any way to visually organize a lot of classes in the same package?
I know that in general, creating a new directory also creates a new package. Is there any way around that? Is it at all possible to have multiple directories that are all in the same package?
If not, I'm also open to any creative ways to visually organize the classes (I've considered prepending class names with the "package" it would be in, but I don't think that helps much).
If there are any solutions involving some sort of IDE tags, that would be acceptable too (we use IntelliJ).
Thanks!
com.company.a
, just create subpackages likecom.company.a.ui
,com.company.a.backend
, etc. - Jim Garrison