class GroupingStrategy extends Object implements SortingStrategy
The <head> merging strategy which groups like elements together.
| Constructor and description |
|---|
GroupingStrategy() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
findPositionForModel(IModel headModel, IModel childModel)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.