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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]