interface and inner class 接口和内部类
The MqttSimpleCallback interface is implemented with an inner class.
MqttSimpleCallback接口是使用内部类实现的。
An inner class is added to implement the MqttSimpleCallback interface, and the registration of that handler.
添加内部类以实现MqttSimpleCallback接口和回调处理程序的注册。
In fact, an anonymous inner class can't even extend a class and implement an interface at the same time.
事实上,一个匿名内部类甚至不能同时扩展一个类和实现一个借口。
应用推荐