Get the third segment which represents the build number. Return null if version has less than three segments.
Compare from from most significant segment to least significant segment.
Examples:
1.6 > 1.4
2.0 > 1.9
1.2.3 > 1.2
1.11 > 1.9.3
Return toStr.hash
Get the first, most significant segment which represents the major version.
Get the second segment which represents the minor version. Return null if version has less than two segments.
Get the fourth segment which represents the patch number. Return null if version has less than four segments.
Get a readonly list of the integer segments.
Get an immutable representation of this instance or throw NotImmutableErr if this object cannot be represented as an immutable:
The string format is equivalent to segments.join(".")
Trap a dynamic call for handling. Dynamic calls are invoked with the -> shortcut operator:
a->x a.trap("x", null)
a->x() a.trap("x", null)
a->x = b a.trap("x", [b])
a->x(b) a.trap("x", [b])
a->x(b, c) a.trap("x", [b, c])
The default implementation provided by Obj attempts to use reflection. If name maps to a method, it is invoked with the specified arguments. If name maps to a field and args.size is zero, get the field. If name maps to a field and args.size is one, set the field and return args[0]. Otherwise throw UnknownSlotErr.
This method called whenever an it-block is applied to an
object. The default implementation calls the function with this
,
and then returns this
.
Static
defDefault value is "0".
Static
echoWrite x.toStr
to standard output followed by newline. If x
is null then print "null". If no argument is provided then
print an empty line.
Optional
x: JsObjStatic
fromParse a string representation into a Version. If invalid format and checked is false return null, otherwise throw ParseErr.
Optional
checked: booleanStatic
make
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
.