public class SortEngine
extends java.lang.Object
| Constructor and Description |
|---|
SortEngine(SortEngineSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected CircularDependencyStrategy |
getCircularStrategy() |
protected VersionMatcher |
getVersionMatcher() |
java.util.List<ModuleDescriptor> |
sortModuleDescriptors(java.util.Collection<ModuleDescriptor> moduleDescriptors,
SortOptions options)
Sorts the given ModuleDescriptors from the less dependent to the more dependent.
|
java.util.List<IvyNode> |
sortNodes(java.util.Collection<IvyNode> nodes,
SortOptions options)
Same as
sortModuleDescriptors(Collection, SortOptions) but for IvyNode
s. |
public SortEngine(SortEngineSettings settings)
public java.util.List<IvyNode> sortNodes(java.util.Collection<IvyNode> nodes, SortOptions options)
sortModuleDescriptors(Collection, SortOptions) but for IvyNode
s.nodes - a Collection of nodes to sortoptions - Options to use to sort the nodes.CircularDependencyException - if a circular dependency exists and circular dependency strategy decide to throw
an exceptionpublic java.util.List<ModuleDescriptor> sortModuleDescriptors(java.util.Collection<ModuleDescriptor> moduleDescriptors, SortOptions options) throws CircularDependencyException
moduleDescriptors - a Collection of ModuleDescriptor to sortoptions - Options to use to sort the descriptors.CircularDependencyException - if a circular dependency exists and circular dependency strategy decide to throw
an exceptionprotected CircularDependencyStrategy getCircularStrategy()
protected VersionMatcher getVersionMatcher()