INSY 3433 Chapter Notes - Chapter 16: Priority Queue, Downcasting, Sequential Access
Document Summary
Introduction: java collections frameworks contains many prebuilt generic data-structures. Type-wrapper classes: each primitive type has corresponding type-wrapper class, classes are boolean, byte, character, double, float, integer, long and short, enable manipulation of primitive-type values as objects. Interface collection contains bulk operations for operations in a collection: bulk operations are operations performed on an entire collection. Interface list is implemented by several classes: classes arraylist and vector are resizable-array implementations of list. Interface sortedmap extends map & maintains its keys in sorted order. Properties class: properties object is a persistent hashtable that stores key-value pairs of strings. Unmodifiable collections: class collections provides a set of static methods that can create unmodifiable wrappers for collections, unmodifiable wrappers throw unsupportedoperationexceptions if attempts are made to modify the collection. Abstract implementations: abstract implementations include abstractcollection (thin collection implementation), Abstractlist (list implementation that allows array-like access to its elements),