It is necessary to check the UML design for the inner class approach used with Sensors in LeJOS.
Current UML design is here:
https://raw.githubusercontent.com/ev3dev-lang-java/ev3dev-lang-java/next-release/docs/uml/graph.png
@Asw1n Why sensors use Inner classes?