commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Pettypiece" <Mike.Pettypi...@EMBARCADERO.COM>
Subject RE: [collections] reference counting
Date Thu, 07 Jul 2005 15:36:56 GMT

Are you thinking of a Bag?

http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_1/or
g/apache/commons/collections/Bag.html


-----Original Message-----
From: Torsten Curdt [mailto:tcurdt@apache.org] 
Sent: July 7, 2005 9:34 AM
To: Jakarta Commons Developers List
Subject: [collections] reference counting

In the back of my head I thought this would
be possible already ...but right now  I just
cannot find how :-/

I would like to have a Set that does
reference counting. Example:

 set.add("a") // 1x a
 set.add("a") // 2x a
 set.remove("a") // 1x a
 set.remove("a") // empty

A useful addition or just me not
seeing the obvious?

cheers
--
Torsten

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