public static Set < Class < ? > > getAllInterfacesAsSet ( Object instance ) { Preconditions . checkNotNull ( instance , "Instance must not be null" ) ; return getAllInterfacesForClassAsSet ( instance . getClass ( ) ) ; }
Return all interfaces that the given instance implements as Set including ones implemented by superclasses .