Default grouping depth
Lets you define the default grouping depth. Only takes effect if sorting is enabled.
The grouping depth specifies the number of package name parts that are to
be taken into account in order to determine whether two import statements are to
be grouped together. For certain packages you may want to specify a grouping
depth that differs from the default.
Statements are to be grouped together, if all relevant parts are equal. So via
the grouping depth you can effectively specify how many parts are relevant.
To disable grouping at all, set the grouping depth to "0
".
Example 4.137. Grouping depth java='1'
import java.awt.Color;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
Example 4.138. Grouping depth java='2'
import java.awt.Color;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
Example 4.139. Grouping depth java= '3'
import java.awt.Color;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;