Package io.karma.kommons.version
Interface Version
- All Superinterfaces:
Comparable<Version>
,Copyable<Version>
- All Known Implementing Classes:
ImmutableVersion
,MutableVersion
- Since:
- 09/07/2022
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
int
getBuild()
int
getMajor()
int
getMinor()
int
getPatch()
default MutableVersion
static Version
of
(int major) static Version
of
(int major, int minor) static Version
of
(int major, int minor, int patch) static Version
of
(int major, int minor, int patch, int build) toString
(boolean includeMinor, boolean includePatch, boolean includeBuild)
-
Field Details
-
PATTERN
-
-
Method Details
-
of
-
of
-
of
-
of
-
parse
-
getPrefix
String getPrefix() -
getSuffix
String getSuffix() -
getMajor
int getMajor() -
getMinor
int getMinor() -
getPatch
int getPatch() -
getBuild
int getBuild() -
toString
-
mutableCopy
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Version>
-