public static Class < ? > [ ] getAllInterfaces ( Class < ? > clz ) { HashSet < Class < ? > > set = new HashSet <> ( ) ; getAllInterfaces ( clz , set ) ; return set . toArray ( new Class < ? > [ set . size ( ) ] ) ; }
Get all interfaces