Class VersionResolutionCollection

java.lang.Object
org.basepom.mojo.dvc.version.VersionResolutionCollection
All Implemented Interfaces:
Comparable<VersionResolutionCollection>

public final class VersionResolutionCollection extends Object implements Comparable<VersionResolutionCollection>
  • Method Details

    • getRequestingDependencies

      public com.google.common.collect.ImmutableSortedSet<VersionResolutionElement> getRequestingDependencies()
    • getExpectedVersion

      public org.apache.maven.artifact.versioning.ComparableVersion getExpectedVersion()
    • isMatchFor

      public boolean isMatchFor(org.apache.maven.artifact.versioning.ComparableVersion version)
      Matches a given version to the collection.
      Parameters:
      version - The version to match to this collection.
      Returns:
      True if the selected version exactly matches the expected version.
    • compareTo

      public int compareTo(VersionResolutionCollection other)
      Specified by:
      compareTo in interface Comparable<VersionResolutionCollection>
    • hasConflict

      public boolean hasConflict()
    • hasDirectDependencies

      public boolean hasDirectDependencies()
    • hasManagedDependencies

      public boolean hasManagedDependencies()
    • toResolutionMap

      public static com.google.common.collect.ImmutableSetMultimap<QualifiedName,VersionResolutionCollection> toResolutionMap(com.google.common.collect.SetMultimap<QualifiedName,VersionResolution> map)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object