flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Filter function to ArrayList?
Date Thu, 22 Dec 2016 17:36:19 GMT

On 12/22/16, 12:19 AM, "sankar" <santanu4ver@gmail.com> wrote:

>JoelProminic wrote
>> Define a new bead, say FilterDataProvider, with a "filter" field.  This
>> would implement ICollection or IArrayList so that the methods return the
>> filtered data instead of the actual data.
>> When this bead is added to a container, it would use the current
>> dataProvider as the raw data, and replace the current dataProvider with
>> itself.
>@Alex, I have a some thought over this; Unfortunately iCollection or
>iArrayList or any collection list that has an in-built filter function
>ArrayCollection) does not available in FlexJS. So perhaps we'll need to
>filter data in a crude way which may cause memory stress.
>What you think about it?

In the pay-as-you-go philosophy, you would create an IArrayListWithFilter
that extends IArrayList, and subclass ArrayList to create an
ArrayListWithFilter.  Don't worry about memory stress until you prove it
exists.  Then the the usual response is to in-line more code which is
totally fine, because you've already proven that there are PAYG options
for those who need it.

My 2 cents,

View raw message