jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: RegexpKeyedMap
Date Thu, 10 Feb 2005 16:43:16 GMT
Manik Surtani wrote:
> Hello all
> 
> I've written a Regexp based hashmap - a simple extension to
> java.util.HashMap which uses regexps as keys, and returns values whose
> regexp keys match a 'requested' key.
> 
> I'd like to submit this to Jakarta, but am not sure whether it would be
> here or to the Commons Collections project.  My class depends on
> org.apache.regexp classes, so it seems logical that it is packaged here
> ... but being a general purpose collection class, I'd think Commons
> Collections ...
> 
> Suggestions?

It's probably of not enough general interest so I don't think it should go into 
regexp package. You can add it to the wiki page, bugzilla, or both. This way 
interested people can get it.

Vadim


> Here's the javadoc on the class...
> 
> /**
>  * This map implementation uses a hashmap as the underlying storage.
>  * Note that the keySet() method will return a set of regular expressions
> rather than actual keys.
>  * The put() method uses a regexp as a key.
>  * The get() method gets any value that matches one of the regexps.  If
> there is more than one matching regexp, the first one
>  * encountered is returned - and hence could be indeterminate!
>  *
>  * @author Manik Surtani
>  *
>  */

---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org


Mime
View raw message