public enum StandardWordGeneratorConfig extends Enum<StandardWordGeneratorConfig> implements WordGeneratorConfig
WordGeneratorConfig
s.Enum Constant and Description |
---|
ENGLISH
A English distribution of letters.
|
EVEN_DISTRIBUTION
An even distribution of letters.
|
GERMAN
A German distribution of letters.
|
Modifier and Type | Method and Description |
---|---|
double |
getProbability(char c)
Returns the probability for a specific character that got returned via
WordGeneratorConfig.getSupportedCharacters() . |
double |
getStandardWordLength()
Returns the standard word length.
|
char[] |
getSupportedCharacters()
Returns the supported lower case characters.
|
static StandardWordGeneratorConfig |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardWordGeneratorConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardWordGeneratorConfig EVEN_DISTRIBUTION
public static final StandardWordGeneratorConfig ENGLISH
public static final StandardWordGeneratorConfig GERMAN
public static StandardWordGeneratorConfig[] values()
for (StandardWordGeneratorConfig c : StandardWordGeneratorConfig.values()) System.out.println(c);
public static StandardWordGeneratorConfig valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic char[] getSupportedCharacters()
WordGeneratorConfig
getSupportedCharacters
in interface WordGeneratorConfig
public double getStandardWordLength()
WordGeneratorConfig
getStandardWordLength
in interface WordGeneratorConfig
public double getProbability(char c)
WordGeneratorConfig
WordGeneratorConfig.getSupportedCharacters()
.getProbability
in interface WordGeneratorConfig
c
- a supported characterCopyright © 2020. All rights reserved.