Class StringGenerator

java.lang.Object
google.registry.util.StringGenerator
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RandomStringGenerator

public abstract class StringGenerator extends Object implements Serializable
String generator.
See Also:
  • Field Details

    • DEFAULT_PASSWORD_LENGTH

      public static final int DEFAULT_PASSWORD_LENGTH
      See Also:
    • alphabet

      protected String alphabet
  • Constructor Details

    • StringGenerator

      protected StringGenerator(String alphabet)
  • Method Details

    • createString

      public abstract String createString(int length)
      Generates a string of a specified length.
    • createStrings

      public Collection<String> createStrings(int length, int count)
      Batch-generates an ImmutableList of strings of a specified length.