Enum Class ImportRewriteConfiguration.ImportContainerSorting

java.lang.Object
java.lang.Enum<ImportRewriteConfiguration.ImportContainerSorting>
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.imports.ImportRewriteConfiguration.ImportContainerSorting
All Implemented Interfaces:
Serializable, Comparable<ImportRewriteConfiguration.ImportContainerSorting>, java.lang.constant.Constable
Enclosing class:
ImportRewriteConfiguration

public static enum ImportRewriteConfiguration.ImportContainerSorting extends Enum<ImportRewriteConfiguration.ImportContainerSorting>
Specifies how to sort import declarations by their packages and/or containing types.
  • Enum Constant Details

    • BY_PACKAGE_AND_CONTAINING_TYPE

      public static final ImportRewriteConfiguration.ImportContainerSorting BY_PACKAGE_AND_CONTAINING_TYPE
      Sorts imports by each import's package and any containing types, in lexicographic order. For example (assuming that all of the imports belong to the same import group):
       import java.net.Socket;
       import java.util.Map;
       import java.util.Set;
       import java.util.Map.Entry;
       
    • BY_PACKAGE

      public static final ImportRewriteConfiguration.ImportContainerSorting BY_PACKAGE
      Sorts imports by each import's package, in lexicographic order. For example (assuming all of the imports belong to the same import group):
       import java.net.Socket;
       import java.util.Map;
       import java.util.Map.Entry;
       import java.util.Set;
       
  • 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 name
      NullPointerException - if the argument is null