Class Comparator
- java.lang.Object
-
- org.jboss.gm.analyzer.alignment.util.Comparator
-
public final class Comparator extends java.lang.ObjectUtility class for comparing dependencies.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontains(java.util.Set<org.gradle.api.artifacts.ProjectDependency> projectDependencies, org.gradle.api.artifacts.ResolvedDependency dependency)Determines whether the set contains the GAV from theResolvedDependency.static booleancontains(java.util.Set<org.gradle.api.artifacts.ProjectDependency> projectDependencies, org.gradle.api.artifacts.UnresolvedDependency unresolvedDependency)Determines whether the set contains the GAV from theUnresolvedDependency.
-
-
-
Method Detail
-
contains
public static boolean contains(java.util.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(java.util.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
-
-