Class UuidFactory

    • Field Detail

      • versionMask

        protected final long versionMask
    • Constructor Detail

      • UuidFactory

        public UuidFactory​(UuidVersion version)
    • Method Detail

      • getVersion

        public UuidVersion getVersion()
        Returns the version number for this factory.
        Returns:
        the version number
      • toUuid

        protected UUID toUuid​(long msb,
                              long lsb)
        Creates a UUID from a pair of numbers.

        It applies the version and variant numbers to the resulting UUID.

        Parameters:
        msb - the most significant bits
        lsb - the least significant bits
        Returns:
        a UUID