Package org.codehaus.mojo.versions.api
Class PluginUpdatesDetails
java.lang.Object
org.codehaus.mojo.versions.api.AbstractVersionDetails
org.codehaus.mojo.versions.api.ArtifactVersions
org.codehaus.mojo.versions.api.PluginUpdatesDetails
- All Implemented Interfaces:
Comparable<ArtifactVersions>,VersionDetails
Details of a plugin's updates.
-
Field Summary
Fields inherited from class org.codehaus.mojo.versions.api.AbstractVersionDetails
verboseDetail -
Constructor Summary
ConstructorsConstructorDescriptionPluginUpdatesDetails(ArtifactVersions artifactVersions, Map<org.apache.maven.model.Dependency, ArtifactVersions> dependencyVersions, boolean includeSnapshots) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependencyVersions(Map<org.apache.maven.model.Dependency, ArtifactVersions> dependencyVersions) intbooleanMap<org.apache.maven.model.Dependency, ArtifactVersions> inthashCode()booleanReturns true if a new version of the artifact fulfilling the criteria (whether to include snapshots) can be foundbooleanReturns true if a new version of the dependency can be foundbooleanbooleanReturns true if a new version of the dependency can be foundMethods inherited from class org.codehaus.mojo.versions.api.ArtifactVersions
compareTo, getArtifact, getArtifactId, getGroupId, getVersion, getVersionComparator, getVersions, isEmpty, isVersionInRange, toStringMethods inherited from class org.codehaus.mojo.versions.api.AbstractVersionDetails
containsVersion, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getCurrentVersion, getCurrentVersionRange, getHighestLowerBound, getLowerBound, getNewerVersions, getNewestUpdateWithinSegment, getNewestUpdateWithinSegment, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getReportNewestUpdate, getReportUpdates, getSelectedRestriction, getVersions, getVersions, getVersions, isVersionInRestriction, restrictionForIgnoreScope, restrictionForSelectedSegment, restrictionForUnchangedSegment, setCurrentVersion, setCurrentVersion, setCurrentVersionRange
-
Constructor Details
-
PluginUpdatesDetails
public PluginUpdatesDetails(ArtifactVersions artifactVersions, Map<org.apache.maven.model.Dependency, ArtifactVersions> dependencyVersions, boolean includeSnapshots)
-
-
Method Details
-
isIncludeSnapshots
public boolean isIncludeSnapshots() -
getDependencyVersions
-
addDependencyVersions
public void addDependencyVersions(Map<org.apache.maven.model.Dependency, ArtifactVersions> dependencyVersions) -
isArtifactUpdateAvailable
public boolean isArtifactUpdateAvailable()Returns true if a new version of the artifact fulfilling the criteria (whether to include snapshots) can be found- Returns:
- true if a new version can be found
-
isDependencyUpdateAvailable
public boolean isDependencyUpdateAvailable()Returns true if a new version of the dependency can be found- Returns:
- true if a new version can be found
-
isUpdateAvailable
public boolean isUpdateAvailable()Returns true if a new version of the dependency can be found- Returns:
- true if a new version can be found
-
equals
- Overrides:
equalsin classArtifactVersions
-
hashCode
public int hashCode()- Overrides:
hashCodein classArtifactVersions
-
compareTo
-