Package google.registry.util
Class StringGenerator
java.lang.Object
google.registry.util.StringGenerator
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RandomStringGenerator
String generator.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A class containing different alphabets used to generate strings. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
createString
(int length) Generates a string of a specified length.createStrings
(int length, int count) Batch-generates anImmutableList
of strings of a specified length.
-
Field Details
-
DEFAULT_PASSWORD_LENGTH
public static final int DEFAULT_PASSWORD_LENGTH- See Also:
-
alphabet
-
-
Constructor Details
-
StringGenerator
-
-
Method Details
-
createString
Generates a string of a specified length. -
createStrings
Batch-generates anImmutableList
of strings of a specified length.
-