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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VersionInfo
checkAndCreate
(String version) static VersionInfo
static VersionInfo
boolean
boolean
greaterThan
(VersionInfo version) boolean
greaterThanOrEquals
(VersionInfo version) int
hashCode()
boolean
stable()
Return if the currentVersionInfo
describe an edge or a stable version.toString()
boolean
valid()
-
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 currentVersionInfo
describe 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
-