previous
|
start
|
next
Constraining Type Variables
Very occasionally, you need to supply two or more type bounds
<E
extends Comparable & Cloneable
>
extends
, when applied to type variables, actually means "extends or implements"
The bounds can be either classes or interfaces
Type variable can be replaced with a class or interface type
previous
|
start
|
next