How to refer to Enclosing class from Inner class?

后端 未结 1 1703
礼貌的吻别
礼貌的吻别 2020-12-06 22:46

I am extending ArrayList to create a custom ArrayList that can be modified using normal ArrayList methods while iterating over it. For this I am also creating an Iterator.

相关标签:
1条回答
  • 2020-12-06 23:17

    EnclosingType.this. So in your case, it would be SynchronizedList.this.

    0 讨论(0)
提交回复
热议问题