Functionality has not changed, but most everything else has. Beyond
new maven group id and java package (com.fasterxml.uuid.*) here are
main things:
- java.util.UUID is now used instead of custom UUID type (as a result,
JDK 1.4 is the strict minimum requirement)
- instead of static singleton UUIDGenerator, main access point now is
com.fasterxml.uuid.Generators; so you instantiate suitable UUID
generator:
NameBasedGenerator nameGen = Generators.nameBasedGenerator(); // or
with optional configuration
and then generate UUIDs using generator:
UUID uuid = nameGen.generate("http://fasterxml.com")
- EthernetAddress class has methods to not only construct bogus
broadcast address (in cases where no NICs are available); but also
EthernetAddress.fromInterface() which fill finally allow accessing
Ethernet address (for type 1 generation) without native code -- when
used, JDK 1.6 is needed, since that's when underlying functionality
came available.
- Jar file is also an OSGi bundle to make it bit more convenient to
use on OSGi container
- All generators are fully-thread safe without additional
synchronization; and you can still impose stricter limites (file-based
locking to prevent multiple Jugs, on other JVMs), as before (using
TimestampSynchronizer / UUIDTimer)
Let me know what you think,
-+ Tatu +-