Data Collections

Overview

The ASDK collections library provides a robust set of classes for advanced data storage and retreival beyond the capabilites of an array. Most notably there are collections that function as lists, sets and maps. A list (asdk.ArrayList) is an ordered group of elements that may contain duplicate objects, a set (asdk.HashSet) is an ordered list that does not contain any duplicates, and a map (asdk.HashMap) is a collection of key value pairs. In addtion there are both stack (asdk.Stack) and queue data structures that honor last in first out and first in first out contracts respectively. And lastly the collection library includes an iterator interface (asdk.Iterator) for easily traversing through the elements of a collection.

This section will discuss these collections in detail to bring the power of a modern collection API to the Flash platform.

Collections Classes