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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSorts imports by each import's package, in lexicographic order.Sorts imports by each import's package and any containing types, in lexicographic order. -
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
-
BY_PACKAGE_AND_CONTAINING_TYPE
public static final ImportRewriteConfiguration.ImportContainerSorting BY_PACKAGE_AND_CONTAINING_TYPESorts 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
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 nameNullPointerException
- if the argument is null
-