Interface VersionComparator
- All Superinterfaces:
Comparator<org.apache.maven.artifact.versioning.ArtifactVersion>
- All Known Implementing Classes:
AbstractVersionComparator,MavenVersionComparator,MercuryVersionComparator,NumericVersionComparator
public interface VersionComparator
extends Comparator<org.apache.maven.artifact.versioning.ArtifactVersion>
A rule for comparing and manipulating versions.
-
Method Summary
Modifier and TypeMethodDescriptionintgetSegmentCount(org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion) Returns the number of segments specified or specifiable in the supplied artifact version.Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
getSegmentCount
int getSegmentCount(org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion) Returns the number of segments specified or specifiable in the supplied artifact version.- Parameters:
artifactVersion- The artifact version to count the segments of.- Returns:
- The number of segments.
- Since:
- 1.0-beta-1
-