Enum Class ModuleImportOrderOption

java.lang.Object
java.lang.Enum<ModuleImportOrderOption>
com.puppycrawl.tools.checkstyle.checks.imports.ModuleImportOrderOption
All Implemented Interfaces:
Serializable, Comparable<ModuleImportOrderOption>, Constable

Represents the policy for the position of module import declarations relative to type and static imports.
See Also:
  • Enum Constant Details

    • TOP

      public static final ModuleImportOrderOption TOP
      Represents the policy that module imports are all at the top. For example:
        import module java.desktop;
        import module java.sql;
      
        import java.awt.Button;
        import static java.io.File.createTempFile;
       
    • BOTTOM

      public static final ModuleImportOrderOption BOTTOM
      Represents the policy that module imports are all at the bottom. For example:
        import java.awt.Button;
        import static java.io.File.createTempFile;
      
        import module java.desktop;
        import module java.sql;
       
  • Constructor Details

  • Method Details

    • values

      public static ModuleImportOrderOption[] 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 ModuleImportOrderOption 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