1Z0-809复习 第3章 Generics and Collections 泛型和集合框架

Generics and Collections

Reviewing OCA Collections

Array and ArrayList

Searching and Sorting

Wrapper Classes and Autoboxing

The Diamond Operator

Working with Generics

Generic Classes

Generic Interfaces

Generic Methods

Interacting with Legacy Code

Bounds

Putting It All Together

Using Lists, Sets, Maps, and Queues

Common Collections Methods

Using the List Interface

Using the Set Interface

Using the Queue Interface

Map

Comparing Collection Types

Comparator vs. Comparable

Comparable

Comparator

Searching and Sorting

Additions in Java 8

Using Method References

Removing Conditionally

Updating All Elements

Looping through a Collection

Using New Java 8 Map APIs