public interface UniqueCodeGenerator
| Modifier and Type | Method and Description |
|---|---|
String |
generateUniqueCode(String prefix)
Generates code with high probability this will be the globally unique one.
|
Set<String> |
generateUniqueCodes(String prefix,
int number)
Generates multiple codes with high probability these will be the globally unique ones.
|
String generateUniqueCode(String prefix)
prefix - prefix of generated codeSet<String> generateUniqueCodes(String prefix, int number)
prefix - prefix of all generated codesnumber - number of codes to generate, must be greater than 0Copyright © 2016. All rights reserved.