commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hope, Matthew" <Matthew.H...@capitalone.com>
Subject RE: [COLLECTIONS] Some more lobbying for the OrderedSet class
Date Thu, 01 May 2003 07:53:38 GMT

>returns elements in that order).  Assuming ListSet implements Set, then:
>
>  set.equals(listSet)
>
>is true but:
>
>  listSet.equals(set)
>
>is false, which is a violation of the general Object.equals contract.

Good point well made.

Matt
 
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message