Java Reference
In-Depth Information
interface. Some of these are shown in Display 16.1. In this section, we give you an intro-
duction to this Java collection framework. The topic is too large to treat exhaustively in
this topic, so this can only be an introductory treatment.
Collections are used along with
, which are discussed in Section 16.3. Sepa-
rating collections and iterators into two sections turns out to be a handy way of orga-
nizing the material, but the two topics of collections and iterators are intimately
intertwined. In practice, you normally use them together.
iterators
Display 16.1 The Collection Landscape
Collection<T>
Set<T>
List<T>
AbstractCollection<T>
SortedSet<T>
AbstractSet<T>
AbstractList<T>
ArrayList<T>
Vector<T>
AbstractSequentialList<T>
TreeSet<T>
HashSet<T>
LinkedList<T>
A single line between two boxes means
the lower class or interface is derived
from ( extends ) the higher one.
Interface
T is a type parameter for the type of
the elements stored in the collection.
Abstract Class
Concrete Class
Search WWH ::




Custom Search