Reputation: 9374
I wonder if it's possible to find method of object which returns specific type?
For example I want to look in autocompletion all methods which return String
:
For this example it's easy to find it just by scrolling down, but for objects with large number of methods it can be painful.
Upvotes: 6
Views: 1850
Reputation: 807
Actually there is no default sorting by return type(yet?), even in class structure view. I'm using smart completion(ctrl+shift+space) for this purposes in place where only certain type is accepted, for example:
String s = aClass.<smart completion here>
It will show methods from a aClass
that return String
at the beginning.
Upvotes: 3