commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodney Waldhoff <>
Subject Re: [COLLECTIONS] Some more lobbying for the OrderedSet class
Date Wed, 30 Apr 2003 15:57:18 GMT
I agree that ListSet is a useful an intuitive concept.  Unfortunately,
it's not possible to fully and correctly implement both interfaces, by
nature of the List.equals and Set.equals contracts.  We may want to create
our own ListSet equality definition, or pick one of List.equals or
Set.equals as our defintion of ListSet equality, and make that limitation
very clear in the documentation.  If we do the latter, let's say List,
then we'll probably want to define a ListSet.equalsSet(Set):boolean
method and/or a ListSet.toSet():Set method.

- Rod <>

On Tue, 29 Apr 2003 wrote:

> I strongly agree that a ListSet interface that extends both List and Set is
> the most intuitive way to go.  "List" and "Set" are understood by Java
> developers anywhere and to have a "ListSet" interface would make it very
> clear what it means.
> Eric Pabst
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message