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;
    }
}

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 = "\"";

    private static final int DEFAULT_MIN_LENGTH = 10;
    private static final int DEFAULT_MAX_LENGTH = 10;

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


    /**
     * 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;
    }
}

Remove some magic numbers