Package net.bluemind.core.api
Class VersionInfo
java.lang.Object
net.bluemind.core.api.VersionInfo
This class represents a version number using the
major.minor.release format.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionInfocheckAndCreate(String version) static VersionInfostatic VersionInfobooleanbooleangreaterThan(VersionInfo version) booleangreaterThanOrEquals(VersionInfo version) inthashCode()booleanstable()Return if the currentVersionInfodescribe an edge or a stable version.toString()booleanvalid()
-
Field Details
-
major
the major, eg. major.0.3456 -
minor
the minor, eg. 1.minor.3456 -
release
the release, eg. 1.0.release there can be a SNAPSHOT timestamp for non-release build (eg. 4.1.0.202004021209) It is ignored -
displayName
-
-
Constructor Details
-
VersionInfo
public VersionInfo()
-
-
Method Details
-
checkAndCreate
- Throws:
ServerFault
-
create
-
create
-
valid
public boolean valid() -
greaterThan
-
greaterThanOrEquals
-
stable
public boolean stable()Return if the currentVersionInfodescribe an edge or a stable version. Stable version should have minor part == 0.- Returns:
- True if this object describe a stable version, false if it's an edge.
-
toString
-
fullString
-
hashCode
public int hashCode() -
equals
-