Why prefer a wildcard to a type discriminator in a Java API (Re: Effective Java)
- by Michael Campbell
In the generics section of Bloch's Effective Java (which handily is the "free" chapter available to all: http://java.sun.com/docs/books/effective/generics.pdf), he says:
If a type parameter appears only once in a method declaration, replace it with a wildcard.
(See page 31-33 of that pdf)
The signature in question is:
public static void…