creating module ids

Mark Reinhold mr at sun.com
Tue Nov 10 11:26:42 PST 2009


> Date: Tue, 10 Nov 2009 11:09:29 -0800
> From: jonathan.gibbons at sun.com

> Mark Reinhold wrote:
>> Ah, I didn't realize that was your use case -- you already
>> have a Version object.  So how about
>> 
>>     ModuleId.create(String name, Version version) ?
> 
> That last suggestion would seem to be most excellent, with a corresponding one
> for ModuleIdQuery.

The ModuleIdQuery(String, VersionQuery) constructor is already public,
and both ModuleId and ModuleIdQuery are final classes, so for now I'm
just going to make the ModuleId(String, Version) constructor public
too.

- Mark



More information about the jigsaw-dev mailing list