Constructor and Description |
---|
GPUdbVersion(int major,
int minor,
int revision,
int abiVersion)
Creates a
GPUdbBase.GPUdbVersion with a 4-component version
number. |
GPUdbVersion(int major,
int minor,
int revision,
int abiVersion,
long build)
Creates a
GPUdbBase.GPUdbVersion with a 5-component version
number. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GPUdbBase.GPUdbVersion otherVersion)
Compare this version to the given version.
|
int |
compareTo(int otherMajor,
int otherMinor,
int otherRevision,
int otherAbiVersion,
long otherBuild)
Compare this version to the one represented by the five given version
components.
|
boolean |
equals(Object obj) |
int |
getAbiVersion()
Gets the ABI version (fourth) component of the version.
|
long |
getBuild()
Gets the build number (fifth) component of the version.
|
String |
getFullVersion()
Get the full five-component version.
|
int |
getMajor()
Gets the major (first) component of the version.
|
int |
getMinor()
Gets the minor (second) component of the version.
|
int |
getRevision()
Gets the revision (third) component of the version.
|
String |
getVersion()
Get the four-component version.
|
int |
hashCode() |
boolean |
isEqualTo(GPUdbBase.GPUdbVersion otherVersion)
Determine whether this version is equal to the given version.
|
boolean |
isEqualTo(int otherMajor,
int otherMinor,
int otherRevision,
int otherAbiVersion)
Determine whether this version is equal to the one represented by
the four given version components.
|
boolean |
isEqualTo(int otherMajor,
int otherMinor,
int otherRevision,
int otherAbiVersion,
long otherBuild)
Determine whether this version is equal to the one represented by
the five given version components.
|
boolean |
isNewerThan(GPUdbBase.GPUdbVersion otherVersion)
Determine whether this version is newer than the given version
(not equal to).
|
boolean |
isNewerThan(int otherMajor,
int otherMinor,
int otherRevision,
int otherAbiVersion)
Determine whether this version is newer than the one represented by
the four given version components (not equal to).
|
boolean |
isNewerThan(int otherMajor,
int otherMinor,
int otherRevision,
int otherAbiVersion,
long otherBuild)
Determine whether this version is newer than the one represented by
the five given version components (not equal to).
|
boolean |
isOlderThan(GPUdbBase.GPUdbVersion otherVersion)
Determine whether this version is older than the given version
(not equal to).
|
boolean |
isOlderThan(int otherMajor,
int otherMinor,
int otherRevision,
int otherAbiVersion)
Determine whether this version is older than the one represented by
the four given version components (not equal to).
|
boolean |
isOlderThan(int otherMajor,
int otherMinor,
int otherRevision,
int otherAbiVersion,
long otherBuild)
Determine whether this version is older than the one represented by
the five given version components (not equal to).
|
String |
toString() |
public GPUdbVersion(int major, int minor, int revision, int abiVersion)
GPUdbBase.GPUdbVersion
with a 4-component version
number. The build number for this version will be 0.major
- Major component of this versionminor
- Minor component of this versionrevision
- Revision component of this versionabiVersion
- ABI version component of this versionpublic GPUdbVersion(int major, int minor, int revision, int abiVersion, long build)
GPUdbBase.GPUdbVersion
with a 5-component version
number.major
- Major component of this versionminor
- Minor component of this versionrevision
- Revision component of this versionabiVersion
- ABI version component of this versionbuild
- Build number component of this versionpublic int getMajor()
public int getMinor()
public int getRevision()
public int getAbiVersion()
public long getBuild()
public String getVersion()
major.minor.revision.abiVersion
public String getFullVersion()
major.minor.revision.abiVersion.0or
major.minor.revision.abiVersion.buildNumber
public int compareTo(int otherMajor, int otherMinor, int otherRevision, int otherAbiVersion, long otherBuild)
otherMajor
- Major component of the version to compare tootherMinor
- Minor component of the version to compare tootherRevision
- Revision component of the version to compare tootherAbiVersion
- ABI version component of the version to compare tootherBuild
- Build number component of the version to compare topublic int compareTo(GPUdbBase.GPUdbVersion otherVersion)
otherVersion
- GPUdbBase.GPUdbVersion
to compare this one topublic boolean isNewerThan(GPUdbBase.GPUdbVersion otherVersion)
otherVersion
- GPUdbBase.GPUdbVersion
to compare this one topublic boolean isNewerThan(int otherMajor, int otherMinor, int otherRevision, int otherAbiVersion)
otherMajor
- Major component of the version to compare tootherMinor
- Minor component of the version to compare tootherRevision
- Revision component of the version to compare tootherAbiVersion
- ABI version component of the version to compare topublic boolean isNewerThan(int otherMajor, int otherMinor, int otherRevision, int otherAbiVersion, long otherBuild)
otherMajor
- Major component of the version to compare tootherMinor
- Minor component of the version to compare tootherRevision
- Revision component of the version to compare tootherAbiVersion
- ABI version component of the version to compare tootherBuild
- Build number component of the version to compare topublic boolean isOlderThan(GPUdbBase.GPUdbVersion otherVersion)
otherVersion
- GPUdbBase.GPUdbVersion
to compare this one topublic boolean isOlderThan(int otherMajor, int otherMinor, int otherRevision, int otherAbiVersion)
otherMajor
- Major component of the version to compare tootherMinor
- Minor component of the version to compare tootherRevision
- Revision component of the version to compare tootherAbiVersion
- ABI version component of the version to compare topublic boolean isOlderThan(int otherMajor, int otherMinor, int otherRevision, int otherAbiVersion, long otherBuild)
otherMajor
- Major component of the version to compare tootherMinor
- Minor component of the version to compare tootherRevision
- Revision component of the version to compare tootherAbiVersion
- ABI version component of the version to compare tootherBuild
- Build number component of the version to compare topublic boolean isEqualTo(GPUdbBase.GPUdbVersion otherVersion)
otherVersion
- GPUdbBase.GPUdbVersion
to compare this one topublic boolean isEqualTo(int otherMajor, int otherMinor, int otherRevision, int otherAbiVersion)
otherMajor
- Major component of the version to compare tootherMinor
- Minor component of the version to compare tootherRevision
- Revision component of the version to compare tootherAbiVersion
- ABI version component of the version to compare topublic boolean isEqualTo(int otherMajor, int otherMinor, int otherRevision, int otherAbiVersion, long otherBuild)
otherMajor
- Major component of the version to compare tootherMinor
- Minor component of the version to compare tootherRevision
- Revision component of the version to compare tootherAbiVersion
- ABI version component of the version to compare tootherBuild
- Build number component of the version to compare toCopyright © 2025. All rights reserved.