Class PluginOverviewStats
java.lang.Object
org.codehaus.mojo.versions.reporting.OverviewStats
org.codehaus.mojo.versions.reporting.PluginOverviewStats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends OverviewStats,V extends AbstractVersionDetails>
TfromUpdates(Collection<V> updates, ArtifactVersionsCache cache, boolean allowSnapshots) Creates a PluginOverviewStats instance based on the collection of version updates in the argumentintvoidMethods inherited from class org.codehaus.mojo.versions.reporting.OverviewStats
getAny, getIncremental, getMajor, getMinor, getNewestUpdate, getUpToDate, incrementAny, incrementIncremental, incrementMajor, incrementMinor, incrementUpToDate
-
Constructor Details
-
PluginOverviewStats
public PluginOverviewStats()
-
-
Method Details
-
getDependencies
public int getDependencies() -
incrementDependencies
public void incrementDependencies() -
fromUpdates
public static <T extends OverviewStats,V extends AbstractVersionDetails> T fromUpdates(Collection<V> updates, ArtifactVersionsCache cache, boolean allowSnapshots) Creates a PluginOverviewStats instance based on the collection of version updates in the argument- Type Parameters:
T- always equal to PluginOverviewStatsV- always equal to PluginUpdatesDetails- Parameters:
updates- collection of all version updates, typically from AbstractUpdatesModel.getAllUpdates()cache- if not null, cache to retrieve the version information, initialised with theAbstractVersionDetails.getNewestUpdateWithinSegment(Optional, boolean)update informationallowSnapshots- whether snapshots should be included- Returns:
- instance of the PluginOverviewStats, initialised with the update information
-