public class OverviewStats extends Object
| Constructor and Description |
|---|
OverviewStats() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends OverviewStats,V extends ArtifactVersions> |
fromUpdates(Collection<V> updates,
ArtifactVersionsCache cache)
Creates a OverviewStats instance based on the collection of version updates in
the argument
|
int |
getAny() |
int |
getIncremental() |
int |
getMajor() |
int |
getMinor() |
protected static <V extends ArtifactVersions> |
getNewestUpdate(ArtifactVersionsCache cache,
V details,
Optional<Segment> segment) |
int |
getUpToDate() |
void |
incrementAny() |
void |
incrementIncremental() |
void |
incrementMajor() |
void |
incrementMinor() |
void |
incrementUpToDate() |
public static <T extends OverviewStats,V extends ArtifactVersions> T fromUpdates(Collection<V> updates, ArtifactVersionsCache cache)
T - subclass of OverviewStatsV - subclass of ArtifactVersionsupdates - collection of all version updates, typically from
AbstractUpdatesModel.getAllUpdates()cache - if not null, cache to retrieve the version information, initialised with
the AbstractVersionDetails.getNewestUpdate(Optional) update informationprotected static <V extends ArtifactVersions> org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(ArtifactVersionsCache cache, V details, Optional<Segment> segment)
public int getMajor()
public void incrementMajor()
public int getMinor()
public void incrementMinor()
public int getIncremental()
public void incrementIncremental()
public int getAny()
public void incrementAny()
public int getUpToDate()
public void incrementUpToDate()
Copyright © 2008–2022 MojoHaus. All rights reserved.