The Collection Classes

  • John Hunt

Abstract

This chapter discusses probably the most used class hierarchy in Smalltalk; the collection class hierarchy. The collection classes are the basis upon which data structures are constructed in Smalltalk. Section two introduces the collection class hierarchy and the common functionality provided by all collection classes. Section three presents a decision tree to help identify the most appropriate collection class to use. Sections four, five and six present the Bag class, the Set class and the OrderedCollection class (respectively). Section seven then presents how the OrderedCollection class can be used to construct Stack and Queue classes.

Keywords

Corn Hunt 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag London Limited 1997

Authors and Affiliations

  • John Hunt
    • 1
  1. 1.Computer Science DepartmentThe University of Wales, PenglaisAberystwyth, DyfedWales

Personalised recommendations