public abstract class AbstractUuidCreator extends Object
UUID objects.| Modifier and Type | Field and Description |
|---|---|
protected int |
version |
protected long |
versionBits |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUuidCreator() |
|
AbstractUuidCreator(int version) |
|
AbstractUuidCreator(UuidVersion version) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getVariantBits(long lsb)
Returns the variant bits from the "Least Significant Bits".
|
int |
getVersion()
Returns the version number for this creator.
|
protected long |
getVersionBits(long msb)
Returns the version bits from the "Most Significant Bits".
|
protected long |
setVariantBits(long lsb)
Set UUID variant bits into the "Least Significant Bits".
|
protected long |
setVersionBits(long msb)
Set UUID version bits into the "Most Significant Bits".
|
protected AbstractUuidCreator()
public AbstractUuidCreator(int version)
public AbstractUuidCreator(UuidVersion version)
public int getVersion()
protected long getVariantBits(long lsb)
lsb - the LSBprotected long setVariantBits(long lsb)
lsb - the LSBprotected long getVersionBits(long msb)
msb - the MSBprotected long setVersionBits(long msb)
msb - the MSBCopyright © 2020. All rights reserved.