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 TypeMethodDescriptionlongGives back thebuildNumberfield of the version, such as 4 in version 1.5.3.4.shortmajor()Gives back themajorfield of the version, such as 1 in version 1.5.3.4.shortminor()Gives back theminorfield of the version, such as 5 in version 1.5.3.4.longpatch()Gives back thepatchfield 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 themajorfield of the version, such as 1 in version 1.5.3.4.- Returns:
- The
majorfield of the version.
-
minor
short minor()Gives back theminorfield of the version, such as 5 in version 1.5.3.4.- Returns:
- The
minorfield of the version.
-
patch
long patch()Gives back thepatchfield of the version, such as 3 in version 1.5.3.4.- Returns:
- The
patchfield of the version.
-
buildNumber
long buildNumber()Gives back thebuildNumberfield of the version, such as 4 in version 1.5.3.4.- Returns:
- The
buildNumberfield of the version.
-