commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Reilly" <tim.rei...@consultant.com>
Subject [id] hooking up UUID generation
Date Wed, 10 Mar 2004 03:55:06 GMT
Any thoughts on "hooking-up" the UUID generation like the other id
generators?

I was thinking something along these lines:
either:
IdentifierUtils.nextUUID([UUID.VERSION_ONE | UUID.VERSION_FOUR]);
-or-
IdentifierUtils.nextVersionOneUUID();
IdentifierUtils.nextVersionFourUUID([void | boolean:secure]);

And same thought on the factory:
either:
IdentifierGeneratorFactory factory =
IdentifierGeneratorFactory.newInstance();
UUIDGenerator generator = factory.uuidGenerator(UUID.VERSION_ONE |
UUID.VERSION_FOUR);
-or-
VersionOneGenerator generator = factory.uuidVersionOneGenerator();
VersionFourGenerator generator = factory.uuidVersionFourGenerator();


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


Mime
View raw message