Any additional encapsulation, such as making the entire inner class private , is desirable; but public inner classes are perfectly acceptable . There are many examples in Java, such as AbstractMap.
Any additional encapsulation, such as making the entire inner class private , is desirable; but public inner classes are perfectly acceptable . There are many examples in Java, such as AbstractMap.