Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Putting Nested Classes In Separate Files

I have a file with nested classes, but it's becoming long enough to be unreadable. Is there a way I can break out the nested classes into separate files?

like image 484
Vlad the Impala Avatar asked Sep 05 '10 04:09

Vlad the Impala


2 Answers

Use the right tools.

alt text

like image 104
BalusC Avatar answered Nov 03 '22 15:11

BalusC


I'm afraid not.
As an alternative, you could consider converting some of them to plain Java classes: although nested classes increase encapsulation, you can certainly create good OO design without them.

My two cents.

like image 3
Nikita Rybak Avatar answered Nov 03 '22 16:11

Nikita Rybak