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