You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Umesh Singh <us...@io-content.com> on 2006/04/20 18:01:01 UTC

Using Predicate on this Problem

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