public interface ArtifactVersion
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(VersionVisitor<T> visitor) |
int |
hotFixNumber()
Deprecated.
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations. |
boolean |
isChPatch()
Deprecated.
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations.
NOTE: This format is not server compliant. |
boolean |
isEarlyAccess()
Deprecated.
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations. |
boolean |
isHotFix()
Deprecated.
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations. |
boolean |
isHotFixOf(ArtifactVersion anotherVersion)
Deprecated.
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations. |
boolean |
isReleaseCandidate()
Deprecated.
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations. |
boolean |
isSnapshot()
Deprecated.
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations. |
int |
major() |
int |
minor() |
boolean |
olderThan(ArtifactVersion anotherVersion)
Compares whether another
ArtifactVersion is older than this. |
int |
patch() |
ArtifactVersion |
release() |
String |
value() |
int major()
int minor()
int patch()
String value()
ArtifactVersion in a String format.@Deprecated int hotFixNumber()
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations.ArtifactVersion 'hot fix' number, i.e.: 0.0.1-hf33 is 33 and 0.0.1-hf66-SNAPSHOT is 66.InvalidHotFixVersionException - if this ArtifactVersion is not a valid 'hot fix' version (i.e.:
1.0.0-HFt800 is not a valid version).boolean olderThan(ArtifactVersion anotherVersion)
ArtifactVersion is older than this.anotherVersion - to compare age.@Deprecated boolean isSnapshot()
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations.ArtifactVersion is a snapshot or not.@Deprecated boolean isHotFix()
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations.ArtifactVersion is a 'hot fix' version or not (i.e.: 0.0.1-HF666, 0.0.1-hf32 and
0.0.1-hf999-SNAPSHOT are hot fixes of version 0.0.1).@Deprecated boolean isHotFixOf(ArtifactVersion anotherVersion)
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations.ArtifactVersion is a 'hot fix' version of another one (i.e.: 0.0.1-HF3 is a hot fix of
version 0.0.1 but 0.0.1-myVersion is not).@Deprecated boolean isEarlyAccess()
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations.ArtifactVersion is an 'early access' version or not. An early access version MUST
contain the suffix 'eaX' where X is a positive integer (i.e.: 0.0.1-ea1 and 0.0.1-ea2-SNAPSHOT are early access
versions).@Deprecated boolean isReleaseCandidate()
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations.ArtifactVersion is a 'release candidate' version or not. A release candidate version
MUST contain the suffit 'rcX' where X is a positive integer. (i.e.: 0.0.1-rc1 and 0.0.1-rc2-SNAPSHOT are early
access versions).@Deprecated boolean isChPatch()
ArtifactVersion have now a proper hierarchy and you can use it to visit specific
implementations.
NOTE: This format is not server compliant.
ArtifactVersion is a dated released version. Dated versions are in the form of
major.minor.patch-YYYYMMDD. These versions are specific for CloudHub (CH) and Runtime Fabric (RTF).ArtifactVersion release()
<T> T accept(VersionVisitor<T> visitor)
Copyright © 2021. All rights reserved.