Class Comparator


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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 the ResolvedDependency.
      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 the UnresolvedDependency.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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​(java.util.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