commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Umesh Singh <>
Subject Using Predicate on this Problem
Date Thu, 20 Apr 2006 16:01:01 GMT

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message