Package ru.curs.celesta.score
Class VersionString
- java.lang.Object
-
- ru.curs.celesta.score.VersionString
-
public final class VersionString extends Object
Version string that has to consist of comma separated version tags.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VersionString.ComparisionState
The result of comparison of VersionStrings on which a partial order is defined.
-
Field Summary
Fields Modifier and Type Field Description static VersionString
DEFAULT
Default version string for newly created dynamic grains.
-
Constructor Summary
Constructors Constructor Description VersionString(String versionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionString.ComparisionState
compareTo(VersionString o)
Comparison based on the existence of partial order on versions.boolean
equals(Object obj)
int
hashCode()
String
toString()
-
-
-
Field Detail
-
DEFAULT
public static final VersionString DEFAULT
Default version string for newly created dynamic grains. Corresponds to "1.00".
-
-
Constructor Detail
-
VersionString
public VersionString(String versionString) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
compareTo
public VersionString.ComparisionState compareTo(VersionString o)
Comparison based on the existence of partial order on versions.- Parameters:
o
- object that current version is being compared with.
-
-