ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlcarpen...@household.com
Subject Looking for map with collection values with contains method at map level
Date Fri, 13 Sep 2002 22:14:59 GMT

I am looking for a Map implementation that assumes its values are
Collection objects.

The only extra functionality I am looking for above and beyond the Map
interface is for the Map to have a contains method that returns a boolean
indicating whether any of the collections within the map contains the
argument of the contains method.

========================================
//Example
FancyMap fm = new FancyMap();

Collection col1 = new ArrayList();
col1.add("jimmy");
col1.add("was");
col1.add("here");

Collection col2 = new ArrayList();
col2.add("gonzo's");
col2.add("big"):
col2.add("nose");

fm.add(col1);
fm.add(col2);

boolean wordFound = fm.contains("jimmy");
==========================================

James Lee Carpenter
Software Engineer
Household Technical Services
6602 Convoy Court
San Diego, CA 92111

ph: 858-609-2461
email: jlcarpenter@household.com



--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message