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.
|
protected abstract int |
innerGetSegmentCount(org.apache.maven.artifact.versioning.ArtifactVersion v) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitrestrictionForcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic 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 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–2022 MojoHaus. All rights reserved.