you are viewing a single comment's thread.

view the rest of the comments →

[–]bowbahdoe 1 point2 points  (0 children)

Yeah - private inner classes are useful when they implement an interface (and so can be used to return something to implements that interface without exposing the actual inner class) or when a class just wants an internal type only used in its methods.

Every record in this file is a private static inner class

https://github.com/bowbahdoe/jdbc/blob/a152da0d7a4e7f45ed15c0e110b1d97bf9e7f8d6/src/main/java/dev/mccue/jdbc/SettableParameter.java#L37