Checks that the groups of import declarations appear in the order specified by the user. If there is an import but its group is not specified in the configuration such an import should be placed at the end of the import list.
The rule consists of:
1) STATIC group. This group sets the ordering of static imports.
2) SAME_PACKAGE(n) group. This group sets the ordering of the same package imports. n' - a number of the first package domains. For example:
package java.util.concurrent; import java.util.regex.Pattern; import java.util.List; import java.util.StringTokenizer; import java.util.regex.Pattern; import java.util.*; import java.util.concurrent.AbstractExecutorService; import java.util.concurrent.*;
And we have such configuration: SAME_PACKAGE (3). Same package imports are java.util.*, java.util.concurrent.*, java.util.concurrent.AbstractExecutorService, java.util.List and java.util.StringTokenizer
3) THIRD_PARTY_PACKAGE group. This group sets ordering of third party imports. Third party imports are all imports except STATIC, SAME_PACKAGE(n) and STANDARD_JAVA_PACKAGE.
4) STANDARD_JAVA_PACKAGE group. This group sets ordering of standard java (java|javax) imports.
5) SPECIAL_IMPORTS group. This group may contains some imports that have particular meaning for the user.
Use the separator '###' between rules.