jchambers / fast-uuid

A Java library for quickly and efficiently parsing and writing UUIDs
MIT License
162 stars 18 forks source link

`toString` without the dashes #7

Closed markusthoemmes closed 6 years ago

markusthoemmes commented 6 years ago

I realize a proper UUID has dash-delimiters. For my project specifically, we want those gone (to make UUID copyable from the commandline easily).

Any chance you'd accept a PR for toStringWithoutDashes?

jchambers commented 6 years ago

I've gone back and forth on this a few times, but I think it makes sense to pass for now. I really appreciate the offer, though! My thought is that, while some users may find it useful, having a library about UUIDs that produces things that aren't technically legal UUIDs is likely to cause more confusion than is justified by the benefit.

That said, thank you again for the offer!

doom369 commented 6 years ago

@markusthoemmes you may use own method, something like I did based on @jchambers code - https://github.com/blynkkk/blynk-server/blob/master/server/utils/src/main/java/cc/blynk/utils/TokenGeneratorUtil.java#L36