public class DefaultArtifactVersion extends java.lang.Object implements ArtifactVersion
Modifier and Type | Field and Description |
---|---|
private ComparableVersion |
comparableVersion |
private java.lang.String |
label |
private VersionRange |
range |
private boolean |
unbounded |
Constructor and Description |
---|
DefaultArtifactVersion(java.lang.String versionNumber) |
DefaultArtifactVersion(java.lang.String string,
boolean unbounded) |
DefaultArtifactVersion(java.lang.String label,
java.lang.String version) |
DefaultArtifactVersion(java.lang.String label,
VersionRange range) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ArtifactVersion o) |
boolean |
containsVersion(ArtifactVersion source) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLabel() |
VersionRange |
getRange() |
java.lang.String |
getRangeString() |
java.lang.String |
getVersionString() |
java.lang.String |
toString() |
private ComparableVersion comparableVersion
private java.lang.String label
private boolean unbounded
private VersionRange range
public DefaultArtifactVersion(java.lang.String versionNumber)
public DefaultArtifactVersion(java.lang.String label, VersionRange range)
public DefaultArtifactVersion(java.lang.String label, java.lang.String version)
public DefaultArtifactVersion(java.lang.String string, boolean unbounded)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(ArtifactVersion o)
compareTo
in interface java.lang.Comparable<ArtifactVersion>
public java.lang.String getLabel()
getLabel
in interface ArtifactVersion
public boolean containsVersion(ArtifactVersion source)
containsVersion
in interface ArtifactVersion
public java.lang.String getVersionString()
getVersionString
in interface ArtifactVersion
public java.lang.String getRangeString()
getRangeString
in interface ArtifactVersion
public java.lang.String toString()
toString
in class java.lang.Object
public VersionRange getRange()