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

Add Vector implementations of IList and ICollectionView

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: