f4b6a3 / uuid-creator

UUID Creator is a Java library for generating Universally Unique Identifiers.
MIT License
432 stars 44 forks source link

Hide MSB and LSB methods used only for tests #79

Closed fabiolimace closed 1 year ago

fabiolimace commented 1 year ago

Hide these methods in the package:

They are used only for unit tests.

If someone ever needs the hidden methods, they can do this:

long msb = guid.toUUID().getMostSignificantBits();
long lsb = guid.toUUID().getLeastSignificantBits();

You can think of the GUID as a JDK's UUID wrapper. The toUUID() method unwraps a JDK's UUID so that you can use its interface.

fabiolimace commented 1 year ago

Released v5.3.1! 🎉