public static boolean hasInterface ( Class < ? > cls , Class < ? > inter ) { return Stream . of ( cls . getInterfaces ( ) ) . anyMatch ( c -> c . equals ( inter ) ) ; }
Determine whether CLS is an implementation of an inteface Type .