public static Set < Class < ? > > getAllInterfaces ( final Class < ? > cls ) { final Set < Class < ? > > interfacesFound = new LinkedHashSet <> ( ) ; getAllInterfaces ( cls , interfacesFound ) ; return interfacesFound ; }
Copied from Apache Commons Lang under Apache License v2 .