public final class GroupingSort extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<UsesNodeBuilder> |
getAllUsesNodes(DataNodeContainerBuilder container)
Returns the set of the uses nodes which are get from uses in
container, from uses in groupings inside
container and from uses inside child nodes of the
container. |
static List<GroupingBuilder> |
sort(Collection<GroupingBuilder> groupingDefinitions)
Sorts set
groupingDefinitions according to the mutual
dependencies.Elements of groupingDefinitions are firstly transformed to
Node interfaces and then are sorted by
sort() method of TopologicalSort.Definition of dependency relation: The first GroupingDefinition object (in this context)
depends on second GroupingDefinition object if the first one
contains in its set of UsesNode (obtained through
getUses method) reference to the second one. |
public static List<GroupingBuilder> sort(Collection<GroupingBuilder> groupingDefinitions)
groupingDefinitions according to the mutual
dependencies.groupingDefinitions are firstly transformed to
Node interfaces and then are sorted by
sort() method of TopologicalSort.GroupingDefinition object (in this context)
depends on second GroupingDefinition object if the first one
contains in its set of UsesNode (obtained through
getUses method) reference to the second one.groupingDefinitions - set of grouping definition which should be sorted according to
mutual dependenciesIllegalArgumentException - if groupingDefinitionspublic static Set<UsesNodeBuilder> getAllUsesNodes(DataNodeContainerBuilder container)
container, from uses in groupings inside
container and from uses inside child nodes of the
container.container - data node container which can contain some uses of groupingcontainer.Copyright © 2014. All rights reserved.