commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alice Boxhall <al...@aconex.com>
Subject [Collections] MultiHashMap - retrieving values in the order in which they were added
Date Fri, 12 Aug 2005 01:04:52 GMT
Hello all,

Just a quick question re MultiHashMap:
For my current project I need to be able to ensure that if I do

map.put("foo", a);
map.put("foo", b);
((Collection)map.get("foo")).iterator();

I will get a and b back in that order. Obviously with the current 
implementation this will be the case, but I was wondering if there was 
some way that I could ensure that in case the implementation changes.

If not, no big deal, I can easily work around it.

Cheers,

Alice

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


Mime
View raw message