Gah. Thanks, I was afraid of that.
-----Original Message----- From: Daniel Gold <[EMAIL PROTECTED]> Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] ListCollectionView.contains() Date: Thu, 1 May 2008 18:44:26 -0500 contains is an object comparison, so it is by reference except when dealing with primitives I believe. The collection wouldn't know how you wanted to compare your objects so you'll have to iterate and check the relevant properties or extend a collection class, add a containsByValue, and have your objects implement a Comparable interface of some kind. On Thu, May 1, 2008 at 2:29 PM, Maciek Sakrejda <[EMAIL PROTECTED]> wrote: Does ListCollectionView.contains() use reference equality to check if the collection contains a given object? Is there a simple way of using value equality (besides the obvious iteration)? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com