commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GUPTA GAURAV KUMAR" <Gaurav_Kumar.Gu...@alcatel-lucent.com>
Subject RE: [Collections] "For each pair" iterator
Date Tue, 01 Apr 2008 02:59:31 GMT
Hi 

Please provide more details about your query. Better to give some
example.

KR
Gaurav Kumar

-----Original Message-----
From: Pedro Pedruzzi [mailto:ppedruzzi@v2com.mobi] 
Sent: Tuesday, April 01, 2008 3:56 AM
To: user@commons.apache.org
Subject: [Collections] "For each pair" iterator

Hi guys,

I have a java.util.Set and I'd like to do a iteration like "for each
to distinct pair of elements" do something. In this case I don't care
for the ordering of the pair. A most precise way would be: "for each
subset of size 2" do something.

Do the Apache Commons Collections provide some class to do this?

Thanks in advance,

-- 
Pedro Pedruzzi | V2COM | +55 11 3094-3939

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


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


Mime
View raw message