This chapter describes the Java Collections Framework. Here you will learn what collections are and how they can make your job easier and programs better. You'll learn about the core elements — interfaces, implementations, and algorithms — that comprise the Java Collections Framework.
Introduction tells you what collections are, and how they'll make your job easier and your programs better. You'll learn about the core elements that comprise the Collections Framework: interfaces, implementations and algorithms.
Interfaces describes the core collection interfaces, which are the heart and soul of the Java Collections Framework. You'll learn general guidelines for effective use of these interfaces, including when to use which interface. You'll also learn idioms for each interface that will help you get the most out of the interfaces.
Implementations describes the JDK's general-purpose collection implementations and tells you when to use which implementation. You'll also learn about the wrapper implementations, which add functionality to general-purpose implementations.
Algorithms describes the polymorphic algorithms provided by the JDK to operate on collections. With any luck you'll never have to write your own sort routine again!
Custom Implementations tells you why you might want to write your own collection implementation (instead of using one of the general-purpose implementations provided by the JDK), and how you'd go about it. It's easy with the JDK's abstract collection implementations!
Interoperability tells you how the Collections Framework interoperates with older APIs that predate the addition of Collections to Java. Also, it tells you how to design new APIs so that they'll interoperate seamlessly with other new APIs
If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or
a shared Workgroup and then make your edits.
Derive a copy
If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content
by creating a derived copy of it and then editing and publishing the copy.
A lens is a custom
view of the content in the repository. You can think of it as a
fancy kind of list that will let you see content
through the eyes of organizations and people you
trust.
What is in a lens?
Lens makers
point to materials (modules and
collections), creating a guide that includes their own
comments and descriptive tags about the content.
Who can create a lens?
Any individual
member, a community, or a respected
organization.
What are tags?
Tags are descriptors
added by lens makers to help label content, attaching a
vocabulary that is meaningful in the context of the lens.
'My Favorites' is a special kind of lens which you can use to bookmark modules and
collections. 'My Favorites' can only be seen by you, and collections
saved in 'My Favorites' can remember the last module you were on. You need an account
to use 'My Favorites'.
'My Favorites' is a special kind of lens which you can use to bookmark modules and
collections. 'My Favorites' can only be seen by you, and collections
saved in 'My Favorites' can remember the last module you were on. You need an account
to use 'My Favorites'.
A lens is a custom
view of the content in the repository. You can think of it as a
fancy kind of list that will let you see content
through the eyes of organizations and people you
trust.
What is in a lens?
Lens makers
point to materials (modules and
collections), creating a guide that includes their own
comments and descriptive tags about the content.
Who can create a lens?
Any individual
member, a community, or a respected
organization.
What are tags?
Tags are descriptors
added by lens makers to help label content, attaching a
vocabulary that is meaningful in the context of the lens.
If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or
a shared Workgroup and then make your edits.
Derive a copy
If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content
by creating a derived copy of it and then editing and publishing the copy.