Package ch.nevis.mobile.sdk.api.metadata
Interface Version
- All Superinterfaces:
Comparable<Version>
An interface that represents a generic version with
major
, minor
, patch
and buildNumber
fields.-
Method Summary
Modifier and TypeMethodDescriptionlong
Gives back thebuildNumber
field of the version, such as 4 in version 1.5.3.4.short
major()
Gives back themajor
field of the version, such as 1 in version 1.5.3.4.short
minor()
Gives back theminor
field of the version, such as 5 in version 1.5.3.4.long
patch()
Gives back thepatch
field of the version, such as 3 in version 1.5.3.4.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
major
short major()Gives back themajor
field of the version, such as 1 in version 1.5.3.4.- Returns:
- The
major
field of the version.
-
minor
short minor()Gives back theminor
field of the version, such as 5 in version 1.5.3.4.- Returns:
- The
minor
field of the version.
-
patch
long patch()Gives back thepatch
field of the version, such as 3 in version 1.5.3.4.- Returns:
- The
patch
field of the version.
-
buildNumber
long buildNumber()Gives back thebuildNumber
field of the version, such as 4 in version 1.5.3.4.- Returns:
- The
buildNumber
field of the version.
-