Class ConflictResolver.ConflictItem

java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.ConflictItem
Enclosing class:
ConflictResolver

public abstract static class ConflictResolver.ConflictItem extends Object
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 Details

  • Constructor Details

  • Method Details

    • isSibling

      public abstract boolean isSibling(ConflictResolver.ConflictItem item)
      Determines whether the specified conflict item is a sibling of this item.
      Parameters:
      item - The other conflict item, must not be null.
      Returns:
      true if the given item has the same parent as this item, false otherwise.
    • getNode

      public abstract DependencyNode getNode()
      Gets the dependency node involved in the conflict.
      Returns:
      The involved dependency node, never null.
    • getDependency

      public abstract Dependency getDependency()
      Gets the dependency involved in the conflict, short for getNode.getDependency().
      Returns:
      The involved dependency, never null.
    • getDepth

      public abstract int getDepth()
      Gets 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.
    • getScopes

      public abstract Collection<String> getScopes()
      Gets 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:
    • getOptionalities

      public abstract int getOptionalities()
      Gets 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_FALSE and/or OPTIONAL_TRUE indicating the derived optionalities the dependency was encountered with.