Is there a way to check from within a Java class that it's super class is of the same type?

后端 未结 0 1547
一生所求
一生所求 2020-12-10 04:54

I am instantiating a decorator variable and I need a way to check if it is a decorator within another decorator of the same type.

For example

Object o          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题