public abstract class AbstractVersionComparator extends Object implements VersionComparator
| Constructor and Description |
|---|
AbstractVersionComparator() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
compare(org.apache.maven.artifact.versioning.ArtifactVersion o1,
org.apache.maven.artifact.versioning.ArtifactVersion o2) |
boolean |
equals(Object obj)
Returns true if this object is the same type of comparator as the parameter.
|
int |
getSegmentCount(org.apache.maven.artifact.versioning.ArtifactVersion v)
Returns the number of segments specified or specifiable in the supplied artifact version.
|
int |
hashCode()
Returns a hash code value for the comparator class.
|
org.apache.maven.artifact.versioning.ArtifactVersion |
incrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v,
int segment)
Increment the specified segment of the supplied version.
|
protected abstract int |
innerGetSegmentCount(org.apache.maven.artifact.versioning.ArtifactVersion v) |
protected abstract org.apache.maven.artifact.versioning.ArtifactVersion |
innerIncrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v,
int segment) |
public abstract int compare(org.apache.maven.artifact.versioning.ArtifactVersion o1,
org.apache.maven.artifact.versioning.ArtifactVersion o2)
compare in interface Comparator<org.apache.maven.artifact.versioning.ArtifactVersion>public final int getSegmentCount(org.apache.maven.artifact.versioning.ArtifactVersion v)
getSegmentCount in interface VersionComparatorv - The artifact version to count the segments of.protected abstract int innerGetSegmentCount(org.apache.maven.artifact.versioning.ArtifactVersion v)
public final org.apache.maven.artifact.versioning.ArtifactVersion incrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v,
int segment)
incrementSegment in interface VersionComparatorv - The artifact version to increment.segment - The segment number to increment.protected abstract org.apache.maven.artifact.versioning.ArtifactVersion innerIncrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v,
int segment)
public int hashCode()
public boolean equals(Object obj)
equals in interface Comparator<org.apache.maven.artifact.versioning.ArtifactVersion>equals in class Objectobj - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.hashCode(),
HashtableCopyright © 2008-2014. All Rights Reserved.