public 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 class Version
s 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.
class Version
Modifier and Type | Class and Description |
---|---|
static class |
Version.Companion |
Modifier and Type | Field and Description |
---|---|
static Version.Companion |
Companion |
Constructor and Description |
---|
Version(int major,
int minor,
boolean snapshot)
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.
|
Modifier and Type | Method and Description |
---|---|
int |
component1() |
int |
component2() |
boolean |
component3() |
Version |
copy(int major,
int minor,
boolean snapshot)
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.
|
boolean |
equals(java.lang.Object p) |
int |
getMajor() |
int |
getMinor() |
boolean |
getSnapshot() |
int |
hashCode() |
java.lang.String |
toString() |
public static Version.Companion Companion
public Version(int major, int minor, boolean snapshot)
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 class Version
s 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.
class Version
public java.lang.String toString()
public int getMajor()
public int getMinor()
public boolean getSnapshot()
public int component1()
public int component2()
public boolean component3()
public Version copy(int major, int minor, boolean snapshot)
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 class Version
s 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.
class Version
public int hashCode()
public boolean equals(java.lang.Object p)