Package aQute.bnd.version
Class MavenVersion
java.lang.Object
aQute.bnd.version.MavenVersion
- All Implemented Interfaces:
Comparable<MavenVersion>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MavenVersion
static final MavenVersion
static final MavenVersion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
cleanupVersion
(String version) int
compareTo
(MavenVersion other) boolean
int
hashCode()
boolean
If the qualifier ends with -SNAPSHOT or for an OSGI version with a qualifier that is SNAPSHOTstatic final MavenVersion
parseMavenString
(String versionStr) static final MavenVersion
parseString
(String osgiVersionStr) This parses an OSGi Version string into a MavenVersion which is not very interesting.static String
toDateStamp
(long epoch) static String
toDateStamp
(long epoch, String build) Return the plain release version for this Maven Version.toSnapshot
(long epoch, String build) toSnapshot
(String dateStamp) toSnapshot
(String timestamp, String build) toString()
static String
-
Field Details
-
UNRESOLVED
-
HIGHEST
-
LOWEST
-
-
Constructor Details
-
MavenVersion
-
MavenVersion
-
-
Method Details
-
parseString
This parses an OSGi Version string into a MavenVersion which is not very interesting. You probably wantparseMavenString(String)
. -
parseMavenString
-
getOSGiVersion
-
isSnapshot
public boolean isSnapshot()If the qualifier ends with -SNAPSHOT or for an OSGI version with a qualifier that is SNAPSHOT -
compareTo
- Specified by:
compareTo
in interfaceComparable<MavenVersion>
-
toString
-
hashCode
public int hashCode() -
equals
-
toSnapshot
-
toReleaseVersion
Return the plain release version for this Maven Version.The release version contains no alpha characters.
- Returns:
- The plain release version for this Maven Version.
-
validate
-
toDateStamp
-
toDateStamp
-
toSnapshot
-
toSnapshot
-
toSnapshot
-
cleanupVersion
-