Collection that is forced to hold values of a certain type.
Authors: Christophe Herreman, Bert Vandamme
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1
type:Class [read-only]Implementation
public function get type():Class
public function TypedCollection(type:Class, source:Array = null)Parameters
| type:Class |
| |
| source:Array (default = null) |
public override function addItem(item:Object):voidParameters
public override function addItemAt(item:Object, index:int):voidParameters
public function addListener(listener:ITypedCollectionListener):void
Registers an ITypedCollectionListener listener
Parameters
public function addRange(range:TypedCollection):voidParameters
protected function check(item:Object):void
Checks if the passed item is of the object type of the TypedCollection
Parameters
| item:Object — the object to be checked
|
public override function createCursor():IViewCursor
Returns
public function removeItem(item:Object):Boolean
Removes an item from the TypedCollection
Parameters
| item:Object — the item to be removed from the TypedCollection
|
Returns
| Boolean — a boolean indicating the succes of the operation
|
Spring ActionScript 0.7.1 - 2009