tim richter

There are different types of data-structure present in the AS3-Collection-Framework. Each of it has it's advantages and disadvantages. So before using it, it's recommended to first think about the requirement.

ICollection

    Definition: Root interface of the collection framework (based on Java-Collection-Framework).

IList

    Definition: The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elements in the list.

    Concrete implementations: ArrayList and LinkedList.

ISet

    Definition: A collection that contains no duplicate elements and at most one null element.

    Concrete implementations: ArraySet and LinkedSet.

ISortedSet

    Definition: A Set that further provides a total ordering on its elements. The elements are ordered by a Comparator provided at sorted set creation time. The set's iterator will traverse the set in ascending element order.

    Concrete implementations: SortedArraySet.

IStack

    Definition: The IStack interface represents a last-in-first-out (LIFO) stack of elements.

    Concrete implementations: ArrayStack and LinkedStack.

IQueue

    Definition: A collection designed for holding elements prior to processing. IQueue implementations generally do not allow insertion of null elements.

    Concrete implementations: ArrayQueue and LinkedQueue.

IMap

    Definition: An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value.

    Concrete implementations: HashMap.

UML diagram of collection framework

3 COMMENTS
ad

[...] | 10 days ago Criterion Collection: Bottle Rocket First saved by georgeo | 11 days ago How to use AS-Collection-Framework First saved by Saltcreekchic | 11 days ago Bape’s Beanies For Fall/Winter 2008 Collection [...]

May 22, 2010
ad

are there asdocs for your libraries? if not i ran your classes through flash builder’s asdoc generator and made some. i can give them to you if you like.

May 22, 2010
ad

oh, nevermind, i see you already have them up on the top right. great library!

Post a comment