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.
  • Enum Constant Details

    • IGNORE

      public static final LevenshteinSettings.UnexpectedModifiers IGNORE
      Like before 2026.11.1: only an unexpected static of attributes and methods is reported, and a missing expected static makes 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

      public static final LevenshteinSettings.UnexpectedModifiers DEVIATE
      Default: every modifier that is neither expected, optional ("final?") nor implicit is a deviation, and a missing expected static is a deviation as well.
  • Method Details

    • values

      public static LevenshteinSettings.UnexpectedModifiers[] 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

      public static LevenshteinSettings.UnexpectedModifiers valueOf(String name)
      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 name
      NullPointerException - if the argument is null