Package org.nuxeo.common.utils
Class FileVersion
java.lang.Object
org.nuxeo.common.utils.FileVersion
- All Implemented Interfaces:
Comparable<FileVersion>
Compare versions of files as they are usually set. Maven classifiers are not managed: a classifier will be considered
as being part of the version. Maven "SNAPSHOT" keyword is taken in account. Rule is: x-SNAPSHOT < x <
x-AnythingButSNAPSHOT < x.y-SNAPSHOT < x.y
- Since:
- 5.5
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Integer[]
boolean
greaterThan
(FileVersion other) boolean
boolean
boolean
lessThan
(FileVersion other) void
toString()
-
Field Details
-
SNAPSHOT
- See Also:
-
version
-
snapshot
protected boolean snapshot -
specialQualifier
protected boolean specialQualifier -
splitVersion
-
qualifier
-
-
Constructor Details
-
FileVersion
-
-
Method Details
-
getQualifier
-
getSplitVersion
-
split
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FileVersion>
-
equals
-
getVersion
-
getVersionWithoutSnapshot
-
greaterThan
-
lessThan
-
isSnapshot
public boolean isSnapshot() -
hasSpecialQualifier
public boolean hasSpecialQualifier()- Since:
- 5.6
-
getVersionWithoutQualifier
- Since:
- 5.6
-
toString
-