commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [COLLECTIONS] Some more lobbying for the OrderedSet class
Date Wed, 30 Apr 2003 12:22:53 GMT
From: "TREPANIER, ERIC" <eric.trepanier@cgi.com>
> It is however quite similar to the Commons Collections' SequencedHashMap
> class (this one I could use), but neither class does provides the direct
> indexing methods associated with the List interface such as: add(index,
> element), addAll(index, element), indexOf(element), remove(index), etc.
> Without these, I cannot arbitrarily reorder the collection at a later time
> like I could do with a List.

This concept is similar to a class I use at work. We have a Map-like List.
The class implements List, but stores Map.Entry objects internally. Its kind
of like SequencedHashMap but List focussed, not Map focussed. So, there may
yet be room for this in [collections].

Stephen


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