Java

Annotated Outline of Java Collections Framework

The Collection API consists of:

Implementation Summary

The following table summarizes the new implementations of the the core collection interfaces. The names are all of the form <Implementation><Interface>. All of these implementations are unsynchronized. All have fail-fast iterators.

Implementations
Hash TableResizable ArrayBalanced TreeLinked List
Interfaces SetHashSet 2 TreeSet 2
List1 ArrayList 1 LinkedList
Map HashMap 2 TreeMap 2

Footnotes

1
Makes little sense.
2
No compelling reason to implement.
3
"Special-purpose" List, akin to an ordered multiset.
Vector and Hashtable are excluded from the Table to highlight the regularity of the new implementations. Note, however, that Vector and Hashtable are full-fledged, fully-supported implementations of the List and Map interfaces. They differ from ArrayList and HashMap only in that they are synchronized, do not support null keys and values, and they support some "legacy methods" omitted from the new implementations.

Copyright © 1995-98 Sun Microsystems, Inc. All Rights Reserved.



Please send comments to: collections-comments@java.sun.com
Sun
Java Software