Class Comparator
java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.util.Comparator
Utility class for comparing dependencies.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontains(Set<org.gradle.api.artifacts.ProjectDependency> projectDependencies, org.gradle.api.artifacts.ResolvedDependency dependency) Determines whether the set contains the GAV from theResolvedDependency.static booleancontains(Set<org.gradle.api.artifacts.ProjectDependency> projectDependencies, org.gradle.api.artifacts.UnresolvedDependency unresolvedDependency) Determines whether the set contains the GAV from theUnresolvedDependency.
-
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 theUnresolvedDependency.- Parameters:
projectDependencies- the set of dependencies of examineunresolvedDependency- 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 theResolvedDependency.- Parameters:
projectDependencies- the set of dependencies of examinedependency- the ResolvedDependency to verify- Returns:
- true if it does match
-