public class SortEngine
extends java.lang.Object
Constructor | Description |
---|---|
SortEngine(SortEngineSettings settings) |
Modifier and Type | Method | Description |
---|---|---|
protected CircularDependencyStrategy |
getCircularStrategy() |
|
protected VersionMatcher |
getVersionMatcher() |
|
java.util.List |
sortModuleDescriptors(java.util.Collection moduleDescriptors,
SortOptions options) |
Sorts the given ModuleDescriptors from the less dependent to the more dependent.
|
java.util.List |
sortNodes(java.util.Collection nodes,
SortOptions options) |
Same as
sortModuleDescriptors(Collection, SortOptions) but for IvyNode s. |
public SortEngine(SortEngineSettings settings)
public java.util.List sortNodes(java.util.Collection 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 sortModuleDescriptors(java.util.Collection 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()