Section 12.2. Implementing Collection


12.2. Implementing Collection

There are no concrete implementations of Collection. The class AbstractCollection, which partially implements it, is one of a series of skeletal implementationsincluding AbstractSet, AbstractList, and so onwhich provide functionality common to the different concrete implementations of each interface. These skeletal implementations are available to help the designer of new implementations of the Framework interfaces. For example, Collection could serve as the interface for bags (unordered lists), and a programmer implementing bags could extend AbstractCollection and find most of the implementation work already done.




Java Generics and Collections
Java Generics and Collections
ISBN: 0596527756
EAN: 2147483647
Year: 2006
Pages: 136

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net