Enum Class LevenshteinSettings.UnexpectedModifiers
java.lang.Object
java.lang.Enum<LevenshteinSettings.UnexpectedModifiers>
io.github.valentinherrmann.levenshtein.LevenshteinSettings.UnexpectedModifiers
- All Implemented Interfaces:
Serializable, Comparable<LevenshteinSettings.UnexpectedModifiers>, Constable
- Enclosing class:
LevenshteinSettings
public static enum LevenshteinSettings.UnexpectedModifiers
extends Enum<LevenshteinSettings.UnexpectedModifiers>
How modifiers of the student's element that the test does not expect are treated.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault: every modifier that is neither expected, optional ("final?") nor implicit is a deviation, and a missing expectedstaticis a deviation as well.Like before 2026.11.1: only an unexpectedstaticof attributes and methods is reported, and a missing expectedstaticmakes the element missing. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
Like before 2026.11.1: only an unexpectedstaticof attributes and methods is reported, and a missing expectedstaticmakes the element missing. (Implicit modifiers, e.g. of enum constants, and bits that are no modifiers, e.g. varargs, are no longer reported in this mode either.) -
DEVIATE
Default: every modifier that is neither expected, optional ("final?") nor implicit is a deviation, and a missing expectedstaticis a deviation as well.
-
-
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
-