Package org.ujmp.core.text
Enum Language
- All Implemented Interfaces:
Serializable
,Comparable<Language>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]
char[]
double
static final Language
static final Language
static Language
Returns the enum constant of this type with the specified name.static Language[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ENGLISH
-
GERMAN
-
-
Field Details
-
alphabet
private final char[] alphabet -
allowedCharacters
private final char[] allowedCharacters -
charFrequencies
-
charBigramFrequencies
-
averageWordLength
private final double averageWordLength
-
-
Constructor Details
-
Language
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getAlphabet
public char[] getAlphabet() -
getAllowedCharacters
public char[] getAllowedCharacters() -
guess
-
getAverageWordLength
public double getAverageWordLength() -
guess
-
getCharacterFrequencies
-
getCharacterBigramFrequencies
-