The Dictionary, Hashtable, and Properties Classes
In this chapter, we’ll look at the historical collection classes that offer support to store key-value pairs. Unlike the Vector class where you look up values based upon an integer index, the Dictionary class and its subclasses work with key-value pairs, where an object is the key to look up a value that is also an object. For the most commonly used subclass, Hashtable, both the key and value can be of type Object or any of its subclasses. The Properties class is another implementation. Instead of working with any type of object, the key and value must both be of type String. Figure 5–1 shows a diagram of the hierarchy of these three classes.
KeywordsHash Table System Property Property Class Cyclic Redundancy Check Hash Code
Unable to display preview. Download preview PDF.