Generics and Collections

A good reference

Maurice Naftalin et Philip Wadler
Java Generics and Collections
O'Reilly 2006

The Java tutorial

Generics
Collections

Generics

The example Iterators

This example uses the following classes : a class Iterators which provides useful methods on instances of Iterator, an interface Predicate which declares a boolean method making it possible to test predicates on objects, and a class TestIterators for testing.