Class ConflictResolver.ConflictItem
java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.ConflictItem
- Enclosing class:
- ConflictResolver
A conflicting dependency.
- Restriction:
- This class is not intended to be instantiated by clients in production code, the constructor may change without notice and only exists to enable unit testing
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intBit flag indicating whether one or more paths consider the dependency non-optional.static final intBit flag indicating whether one or more paths consider the dependency optional.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract org.eclipse.aether.graph.DependencyGets the dependency involved in the conflict, short forgetNode.getDependency().abstract intgetDepth()Gets the zero-based depth at which the conflicting node occurs in the graph.abstract org.eclipse.aether.graph.DependencyNodegetNode()Gets the dependency node involved in the conflict.abstract intGets the derived optionalities of the dependency.abstract Collection<String> Gets the derived scopes of the dependency.abstract booleanDetermines whether the specified conflict item is a sibling of this item.
- 
Field Details- 
OPTIONAL_FALSEBit flag indicating whether one or more paths consider the dependency non-optional.- See Also:
 
- 
OPTIONAL_TRUEBit flag indicating whether one or more paths consider the dependency optional.- See Also:
 
 
- 
- 
Constructor Details- 
ConflictItempublic ConflictItem()
 
- 
- 
Method Details- 
isSiblingDetermines whether the specified conflict item is a sibling of this item.- Parameters:
- item- the other conflict item, must not be- null
- Returns:
- trueif the given item has the same parent as this item,- falseotherwise
 
- 
getNodeGets the dependency node involved in the conflict.- Returns:
- the involved dependency node, never null
 
- 
getDependencyGets the dependency involved in the conflict, short forgetNode.getDependency().- Returns:
- the involved dependency, never null
 
- 
getDepthGets the zero-based depth at which the conflicting node occurs in the graph. As such, the depth denotes the number of parent nodes. If actually multiple paths lead to the node, the return value denotes the smallest possible depth.- Returns:
- the zero-based depth of the node in the graph
 
- 
getScopesGets the derived scopes of the dependency. In general, the same dependency node could be reached via different paths and each path might result in a different derived scope.- Returns:
- the (read-only) set of derived scopes of the dependency, never null
- See Also:
 
- 
getOptionalitiesGets the derived optionalities of the dependency. In general, the same dependency node could be reached via different paths and each path might result in a different derived optionality.- Returns:
- a bit field consisting of OPTIONAL_FALSEand/orOPTIONAL_TRUEindicating the derived optionalities the dependency was encountered with
 
 
-