Enum Class GeneratorAlphabetRestriction
java.lang.Object
java.lang.Enum<GeneratorAlphabetRestriction>
org.emau.icmvc.ganimed.ttp.psn.enums.GeneratorAlphabetRestriction
- All Implemented Interfaces:
Serializable,Comparable<GeneratorAlphabetRestriction>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns a description for this restriction.intReturns invalid input: 'the length for valid alphabets if this restriction describes a constant length, otherwise 0]'.booleanReturns true if the specified alphabet fulfils this restriction.voidvalidateAlphabet(Alphabet alphabet) static GeneratorAlphabetRestrictionReturns the enum constant of this class with the specified name.static GeneratorAlphabetRestriction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
CONST_10
-
CONST_32
-
PRIME
-
PRIME_POWER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isValid
Returns true if the specified alphabet fulfils this restriction.- Parameters:
alphabet- the alphabet to test- Returns:
- true if the specified alphabet fulfils this restriction
-
validateAlphabet
- Throws:
InvalidAlphabetException
-
getValidLength
public int getValidLength()Returns invalid input: 'the length for valid alphabets if this restriction describes a constant length, otherwise 0]'.- Returns:
- invalid input: 'the length for valid alphabets if this restriction describes a constant length, otherwise 0]'
-
getDescription
Returns a description for this restriction.- Returns:
- a description for this restriction
-