java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.util.Comparator

public final class Comparator extends Object
Utility class for comparing dependencies.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    contains(Set<org.gradle.api.artifacts.ProjectDependency> projectDependencies, org.gradle.api.artifacts.ResolvedDependency dependency)
    Determines whether the set contains the GAV from the ResolvedDependency.
    static boolean
    contains(Set<org.gradle.api.artifacts.ProjectDependency> projectDependencies, org.gradle.api.artifacts.UnresolvedDependency unresolvedDependency)
    Determines whether the set contains the GAV from the UnresolvedDependency.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • contains

      public static boolean contains(Set<org.gradle.api.artifacts.ProjectDependency> projectDependencies, org.gradle.api.artifacts.UnresolvedDependency unresolvedDependency)
      Determines whether the set contains the GAV from the UnresolvedDependency.
      Parameters:
      projectDependencies - the set of dependencies of examine
      unresolvedDependency - the UnresolvedDependency to verify
      Returns:
      true if it does match
    • contains

      public static boolean contains(Set<org.gradle.api.artifacts.ProjectDependency> projectDependencies, org.gradle.api.artifacts.ResolvedDependency dependency)
      Determines whether the set contains the GAV from the ResolvedDependency.
      Parameters:
      projectDependencies - the set of dependencies of examine
      dependency - the ResolvedDependency to verify
      Returns:
      true if it does match