Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to find an overview of backed Collection methods/classes

I am trying to find an overview of all methods in the java.util package returning backed Collections (and Maps). The only ones easy to find are the synchronizedXX and immutableXX. But there are others like subMap(). Is there a more comfortable way to find out more about all util methods returning backed collections than to actually read the docs? A visual overview maybe?

the tutorial for wrapped classes (has been proposed twice as an answer) at http://download.oracle.com/javase/tutorial/collections/implementations/wrapper.html is oblivious of the NavigableSet/Map interfaces and therefore does not provide an overview of methods returning backed Collections

like image 849
kostja Avatar asked Sep 10 '10 08:09

kostja


1 Answers

I know this doesn't exactly answer your question (and I risk being down-voted), but I will try anyway.

You should try to study the collections API as much as you can, in general it is good advice for any programming language/platform to invest some time, and learn the basics.

When studying Java collections you will also notice some oddities in the design, and will also realize that there are many things that are not provided that you either have to build your own or get them from somewhere else (such as Apache commons).

In any case, using a modern IDE (such as IntelliJ IDEA or Eclipse) will make things a lot easier on you. Both have ways of searching for symbols with a few keystrokes and also let you navigate the collections API (and any source code you throw at them) making it a lot easier to figure out what is available and how you might take advantage of it.

like image 198
juancn Avatar answered Nov 14 '22 15:11

juancn