You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Omar Gonzalez (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/04/02 22:29:25 UTC

[jira] [Issue Comment Edited] (FLEX-36) Add Vector implementations of IList and ICollectionView

    [ https://issues.apache.org/jira/browse/FLEX-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244562#comment-13244562 ] 

Omar Gonzalez edited comment on FLEX-36 at 4/2/12 8:28 PM:
-----------------------------------------------------------

Yea I feel the same, the implementation around the Vector typing has some... issues. So I felt like I was hacking it together the whole way through because of the typing doesn't behave as expected.
                
      was (Author: s9tpepper):
    Yea I feel the same, the implementation around the Vector typing has some... issues. So I felt like I was hacking it together the whole way through because of the typing does behave as expected.
                  
> Add Vector implementations of IList and ICollectionView
> -------------------------------------------------------
>
>                 Key: FLEX-36
>                 URL: https://issues.apache.org/jira/browse/FLEX-36
>             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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira