Class Eve.Version
java.lang.Object
org.ek9lang.cli.Eve.Version
- Enclosing class:
Eve
The version.
Takes a version text for features or plain versions.
Both with or without a build number.
This then allows the developer to manipulate major, minor, patch and build numbers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Integer(package private) Stringfeature()(package private) voidIncrements the build part of the version number.voidIncrements the major part of the version number.(package private) voidIncrements the minor part of the version number.(package private) voidIncrements the patch part of the version number.(package private) static booleanisInvalidVersionAddressPart(String versionParam) True if version segment is not major, minor, patch or build.(package private) Integermajor()(package private) Integerminor()(package private) Integerpatch()toString()(package private) static Eve.VersionwithBuildNumber(String value) Parse the incoming - but expect a build number.(package private) static Eve.VersionwithFeatureNoBuildNumber(String value) (package private) static Eve.VersionwithNoBuildNumber(String value) Parse the incoming - but expect no build number.(package private) static Eve.VersionwithNoFeatureNoBuildNumber(String value)
-
Constructor Details
-
Version
Version()
-
-
Method Details
-
isInvalidVersionAddressPart
True if version segment is not major, minor, patch or build. -
withNoBuildNumber
Parse the incoming - but expect no build number. -
withNoFeatureNoBuildNumber
-
withFeatureNoBuildNumber
-
withBuildNumber
Parse the incoming - but expect a build number. -
major
Integer major() -
incrementMajor
public void incrementMajor()Increments the major part of the version number. -
minor
Integer minor() -
incrementMinor
void incrementMinor()Increments the minor part of the version number. -
patch
Integer patch() -
incrementPatch
void incrementPatch()Increments the patch part of the version number. -
feature
String feature() -
buildNumber
Integer buildNumber() -
incrementBuildNumber
void incrementBuildNumber()Increments the build part of the version number. -
toString
-