Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Advanced-java] Ordered sets?
- From: jaz@xxxxxxxxxxxx (John Zukowski)
- Subject: [Advanced-java] Ordered sets?
- Date: Wed, 30 Jan 2002 13:17:08 -0500
What you are looking for was added to 1.4. J At 12:03 PM 1/30/2002 -0600, Cain Brian-BCAIN1 wrote: > I've got a question about ordered sets. I'd like to use a set, > that has order, but I don't want to implement a natural ordering of these > elements. I'd prefer to use the order in which they were added to the > set (I don't think the elements of the set need to know, nor should know, > the order in which they were added). > > I know the HashSet's iterator comes "in no particular order", but > does anyone know if it was implemented such that I'll end up with the > results I want anyways? It seems like a tremendous waste of effort to > intentionally entropize a set's order, so I have to imagine that the > elements are added in some logical fashion, right? Is there a set in the > JDK that I'm missing out on, that does what I want? John Zukowski, Strategic Java Consulting JZ Ventures, Inc. - http://www.jzventures.com Java Collections - http://www.apress.com/catalog/book/1893115925/ The limits of my language are the limits of my world. - Wittgenstein
- Prev by Date: [Advanced-java] Ordered sets?
- Next by Date: [Advanced-java] Ordered sets?
- Previous by thread: [Advanced-java] Ordered sets?
- Next by thread: [Advanced-java] Ordered sets?
- Index(es):