Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33116

Add Vector implementations of IList and ICollectionView

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            aharui Alex Harui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: