incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omar Gonzalez (Commented) (JIRA)" <>
Subject [jira] [Commented] (FLEX-36) Add Vector implementations of IList and ICollectionView
Date Thu, 05 Apr 2012 17:58:23 GMT


Omar Gonzalez commented on FLEX-36:

Cool, I'll update my repo and take a peek tonight. When I added the start to a spark string
validator I just made a tests folder next to the src folder for the component in the whiteboard.
I think we can move those tests to their final location whenever its time to move the code
into the actual SDK. It makes it easy to isolate tests for individual things in the whiteboard.
> Add Vector implementations of IList and ICollectionView
> -------------------------------------------------------
>                 Key: FLEX-36
>                 URL:
>             Project: Apache Flex
>          Issue Type: Improvement
>            Reporter: Josh Tynjala
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>              Labels: List, collections
> VectorList and VectorCollection, similar to ArrayList and ArrayCollection. Feels weird
that I need to convert Vectors to Arrays to use in Flex collections.
> In case anyone is unaware, you can cast Vector.<WhateverTypeYouWant> as Vector.<*>.
Works with the "as" and "is" keywords, as you can see below:
> var strings:Vector.<String> = new <String>["One", "Two", "Three"];
> trace(strings is Vector.<*>); //true
> var generic:Vector.<*> = strings as Vector.<*>;
> trace(strings) //One, Two, Three

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message