You are previewing Scala for the Impatient.

Scala for the Impatient

Cover of Scala for the Impatient by Cay S. Horstmann Published by Addison-Wesley Professional
O'Reilly logo

Chapter 17. Type Parameters

Topics in This Chapter image

17.1 Generic Classes — page 232

17.2 Generic Functions — page 232

17.3 Bounds for Type Variables — page 232

17.4 View Bounds — page 234

17.5 Context Bounds — page 234

17.6 The Manifest Context Bound — page 235

17.7 Multiple Bounds — page 235

17.8 Type Constraints image — page 236

17.9 Variance — page 237

17.10 Co- and Contravariant Positions — page 238

17.11 Objects Can’t Be Generic — page 240

17.12 Wildcards — page 241

Exercises — page 241

In Scala, you can use type parameters ...

The best content for your career. Discover unlimited learning on demand for around $1/day.