corda / net.corda.core.node / Version

Version

data class Version

Versions of the same major version but with different minor versions are considered compatible with each other. One exception to this is when the major version is 0 - each different minor version should be considered incompatible.

If two Versions are equal (i.e. equals returns true) but they are both snapshot then they may refer to different builds of the node. NodeVersionInfo.revision would be required to differentiate the two.

Constructors

<init> Version(major: Int, minor: Int, snapshot: Boolean)

Versions of the same major version but with different minor versions are considered compatible with each other. One exception to this is when the major version is 0 - each different minor version should be considered incompatible.

Properties

major val major: Int
minor val minor: Int
snapshot val snapshot: Boolean

Functions

toString fun toString(): String

Companion Object Functions

parse fun parse(string: String): Version