I would like to get a list of all interfaces in one package, so I wouldn’t have to manually update the list of new interfaces. So I thought if it might be possible to get list of all interfaces in given package via reflection. I know that it is possible to get all classes in package, but I don’t know how can I do that with interfaces.
Share
If you know how to enumerate all classes in a package, just do it first and then filter the results by calling
Class.isInterface().See als