3: Chapter 10 Flashcards
Generic class
A class such as ArrayList that takes a type parameter to indicate what kind of values it will use.
Wrapper class
A class that “wraps” (stores) primitive data as an object.
Boxing
An automatic conversion from primitive data to a wrapped object of the appropriate type (e.g. an int boxed to form an Integer).
Unboxing
An automatic conversion from a wrapped object to its corresponding primitive data (e.g. an Integer unboxed to yield an int).
Comparison function
A well-defined procedure for deciding, given a pair of values, the relative order of the two values (less than, equal to, or greater than).
Natural ordering
The order imposed on a type by its comparison function.
ArrayList
A resizable implementation of the List interface.
Map
A map is a collection of key-value pairs.