What is the appropriate design pattern for this situation? (instance of)

前端 未结 0 1693
没有蜡笔的小新
没有蜡笔的小新 2021-02-01 00:27

I\'ve to use a library and need to check (if this instance of that) a lot. For example:

if(myInterface instanceof Foo) {
         


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