type
Version
src
@Serializable { simple=true }
const class Version : Obj
Version is defined as a list of decimal digits separated by the dot. Convention for Fantom pods is a four part version format of major.minor.build.patch
.
constructors
fields
defVal |
Default value is "0". |
---|
methods
build |
Get the third segment which represents the build number. |
---|---|
compare |
Compare from from most significant segment to least significant segment. |
equals |
Return true if equal segments. |
hash |
Return toStr.hash |
major |
Get the first, most significant segment which represents the major version. |
minor |
Get the second segment which represents the minor version. |
patch |
Get the fourth segment which represents the patch number. |
segments |
Get a readonly list of the integer segments. |
toStr |
The string format is equivalent to segments.join(".") |