bsys.maven.ComparableVersion Class Reference
List of all members.
Classes |
class | IntegerItem |
interface | Item |
class | ListItem |
class | StringItem |
Public Member Functions |
| ComparableVersion (final String version) |
final void | parseVersion (final String version0) |
int | compareTo (final ComparableVersion o) |
String | toString () |
boolean | equals (final Object o) |
int | hashCode () |
Detailed Description
Generic implementation of version comparison. Features:
-
mixing of '
-
' (dash) and '.
' (dot) separators,
-
transition between characters and digits also constitutes a separator:
1.0alpha1 => [1, 0, alpha, 1]
-
unlimited number of version components,
-
version components in the text can be digits or strings
-
strings are checked for well-known qualifiers and the qualifier ordering is used for version ordering. Well-known qualifiers (case insensitive):
-
snapshot
-
alpha
or a
-
beta
or b
-
milestone
or m
-
rc
or cr
-
(the empty string)
or ga
or final
-
sp
-
a dash usually precedes a qualifier, and is always less important than something preceded with a dot.
(from SVN, to fix current version's mishandling)
- See also:
- "Versioning" on Maven Wiki
- Author:
- Kenney Westerhof
-
Hervé Boutemy
- Version:
- Id
- ComparableVersion.java,v 1.1 2010/01/04 05:10:35 bbou Exp
Member Function Documentation
final void bsys.maven.ComparableVersion.parseVersion |
( |
final String |
version0 |
) |
|
Parse version
- Parameters:
-
The documentation for this class was generated from the following file:
- /opt/devel/wnscope/WordNetScopeConfig/src/bsys/maven/ComparableVersion.java