commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Umesh Singh <usi...@io-content.com>
Subject Using Predicate on this Problem
Date Thu, 20 Apr 2006 16:01:01 GMT
Hi,

I am new to using Predicate and other commons classes. Here is my problem:

I have a class RetailItem which contains a Set for WholeSaleItem. This 
WholeSaleItem contains  a boolean isPackage which tells if this is a 
single package or not.

The WholeSaleItem contains a Set for DeliveryItems. DeliveryItem 
contains  DeliveryMachanism

Now I want to  do some execution based on isPackage and DeliveryMechanism.

I can simply write the for loops for iterating the sets but wondering if 
this is possible to do it in a simple way using Collections?

Any help is welcome.

Regards,
Umesh

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