package com.fwdekker.randomness.string;


/**
 * Contains settings for generating random strings.
 */
final class StringSettings {
    /**
     * The characters that may be used for generated strings.
     */
    public static final String ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    /**
     * The string that encloses the generated string on both sides.
     */
    public static final String ENCLOSURE = "\"";

    /**
     * The minimum length of a generated string, inclusive.
     */
    private static int minLength = 10;
    /**
     * The maximum length of a generated string, inclusive.
     */
    private static int maxLength = 10;


    /**
     * Returns the minimum length of a generated string, inclusive.
     *
     * @return the minimum length of a generated string, inclusive
     */
    public static int getMinLength() {
        return minLength;
    }

    /**
     * Sets the minimum length of a generated string, inclusive.
     *
     * @param minLength the minimum length of a generated string, inclusive
     */
    public static void setMinLength(final int minLength) {
        StringSettings.minLength = minLength;
    }

    /**
     * Returns the maximum length of a generated string, inclusive.
     *
     * @return the maximum length of a generated string, inclusive
     */
    public static int getMaxLength() {
        return maxLength;
    }

    /**
     * Sets the maximum length of a generated string, inclusive.
     *
     * @param maxLength the maximum length of a generated string, inclusive
     */
    public static void setMaxLength(final int maxLength) {
        StringSettings.maxLength = maxLength;
    }
}

@@ -444,24 +444,133 @@
  %22%5C%22%22;%0A%0A
+    private static final int DEFAULT_MIN_LENGTH = 10;%0A    private static final int DEFAULT_MAX_LENGTH = 10;%0A%0A
     /**%0A
      * T
@@ -553,32 +553,32 @@
  = 10;%0A%0A    /**%0A
-
      * The minim
@@ -664,18 +664,34 @@
 ength = 
-10
+DEFAULT_MIN_LENGTH
 ;%0A    /*
@@ -795,18 +795,34 @@
 ength = 
-10
+DEFAULT_MAX_LENGTH
 ;%0A%0A%0A    

Remove some magic numbers