public final class PrefixCombFactory extends AbstCombFactory
A Prefix COMB GUID is a UUID that combines a creation time with random bits.
The creation millisecond is a 6 bytes PREFIX at the MOST significant bits.
The created UUID is a UUIDv4 for compatibility with RFC-4122.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PrefixCombFactory.Builder |
| 构造器和说明 |
|---|
PrefixCombFactory() |
PrefixCombFactory(java.time.Clock clock) |
PrefixCombFactory(java.util.function.IntFunction<byte[]> randomFunction) |
PrefixCombFactory(java.util.function.IntFunction<byte[]> randomFunction,
java.time.Clock clock) |
PrefixCombFactory(java.util.function.LongSupplier randomFunction) |
PrefixCombFactory(java.util.function.LongSupplier randomFunction,
java.time.Clock clock) |
PrefixCombFactory(Random random) |
PrefixCombFactory(Random random,
java.time.Clock clock) |
public PrefixCombFactory()
public PrefixCombFactory(java.time.Clock clock)
public PrefixCombFactory(Random random)
public PrefixCombFactory(Random random, java.time.Clock clock)
public PrefixCombFactory(java.util.function.LongSupplier randomFunction)
public PrefixCombFactory(java.util.function.IntFunction<byte[]> randomFunction)
public PrefixCombFactory(java.util.function.LongSupplier randomFunction, java.time.Clock clock)
public PrefixCombFactory(java.util.function.IntFunction<byte[]> randomFunction, java.time.Clock clock)
public static PrefixCombFactory.Builder builder()
public UUID create()
Copyright © 2024. All rights reserved.