class GroupingStrategy extends Object
The <head> merging strategy which groups like elements together.
| Type | Name and description |
|---|---|
int |
findPositionForContent(List<Node> decoratorNodes, Node contentNode)Returns the index of the last set of elements that are of the same 'type' as the content node. |
Returns the index of the last set of elements that are of the same 'type' as the content node. eg: groups scripts with scripts, stylesheets with stylesheets, and so on.