public static List < Class < ? > > getInterfaces ( Class < ? > clazz ) { return getInterfacesAsStream ( clazz ) . collect ( Collectors . toList ( ) ) ; }
Get all interfaces of the given class including extended interfaces and interfaces of all superclasses . If the given class is an interface it will be included in the result otherwise not .