Selecting the Best Java Collection Class for Your Application
Java provides over 20 collection classes, each having different performance and organizing properties. Learn how to choose the most appropriate of these classes for a particular use.
Java provides over 20 collection classes, each having different performance and organizing properties. Learn how to choose the most appropriate of these classes for a particular use.
The Java collections framework contains classes you use to maintain collections of other objects. These collection classes have different performance and ordering properties. See how the HashMap and HashSet Classes allow objects to be added to a collection, removed from a collection, or found in roughly constant time. Discover how to use these classes and what to do to achieve good performance from them.
Explore Java collections framework classes that implement the SortedSet interface and how they keep a set of objects in a guaranteed order, independent of the order that they are added to the collection.
Discover how to draw UML sequence diagrams to refine the relationships and responsibilities of classes and objects into a detailed object model.
The Unified Modeling Language (UML) is a notation you can use for object-oriented design. This article contains a brief overview of UML to introduce you to the subset of UML that you can use to describe classes, interfaces, objectsand the relationships among them.
This article summarizes a pattern that is related to creating objects. The issues that it addresses involve dynamically deciding which class to instantiate or to which objects an object will delegate a responsibility. This type of pattern tell us how to structure and encapsulate these decisions.
Regulate which and how many objects to keep in memory by using the cache management pattern.
Take advantage of two useful patterns related to the low-level structure of the classes in an application.
The essence of a pattern is a reusable solution for a recurring problem. In this article we tackle objects.
Using this pattern, a database access library creates and manages objects by maintaining a pool of them that are not currently paired up with a connection object.
Create objects using patterns.
Advance your programming skills with these "reusable solutions for recurring problems."
Discover this pattern related to managing the behavior of objects.
Find out more about the Adapter and Decorator patterns in Java -- both involve objects that are wrappers for other objects.
It enables a class to create objects that implement a known interface by giving it a prototypical instance of each kind of object it will create and then is able to create new objects by cloning an instance.
We continue with a look at the abstract factory class, which defines methods to create an instance of each abstract class that represents a GUI widget.