Retrieving type parameters from an instance of a generic base interface

前端 未结 9 917
悲&欢浪女
悲&欢浪女 2020-12-14 18:27

Given 2 interfaces:

public interface BaseInterface { }
public interface ExtendedInterface extends BaseInterface {}
         


        
9条回答
  •  别那么骄傲
    2020-12-14 18:43

    I think about the only option I can think of is to inspect a generic method which is declared by BaseInterface, and not overridden.

提交回复
热议问题