Class AbstractUuidCreator

    • Field Detail

      • version

        protected final int version
      • versionBits

        protected final long versionBits
    • Constructor Detail

      • AbstractUuidCreator

        protected AbstractUuidCreator()
      • AbstractUuidCreator

        public AbstractUuidCreator​(int version)
      • AbstractUuidCreator

        public AbstractUuidCreator​(UuidVersion version)
    • Method Detail

      • getVersion

        public int getVersion()
        Returns the version number for this creator.
        Returns:
        the version number
      • applyVersionBits

        protected long applyVersionBits​(long msb)
        Applies UUID version bits into the "Most Significant Bits".
        Parameters:
        msb - the MSB
        Returns:
        the MSB
      • applyVariantBits

        protected long applyVariantBits​(long lsb)
        Applies UUID variant bits into the "Least Significant Bits".
        Parameters:
        lsb - the LSB
        Returns:
        the LSB with the correct variant bits