Can I filter autocomplete offers by return type in Eclipse?

When the autocomplete method calls Eclipse, is it possible to filter the list of offers by these criteria:

  • return type
  • class that implements the method

i.e. when i type myArrayList. I would like to find methods that return boolean that are inherited from AbstractCollection ?

+4
source share
1 answer

If you create a local variable and try to assign it, Eclipse first enters the appropriate return types into the autocomplete list, for example

 AbstractCollection obj; boolean temp = obj.<autocomplete list> 

If you declare obj as AbstractCollection, you will not see other methods.

+3
source

Source: https://habr.com/ru/post/1347712/


All Articles