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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
