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 > > >

