java.lang.Object
org.firebirdsql.gds.ng.OdsVersion
- All Implemented Interfaces:
Comparable<OdsVersion>
Value class representing the Firebird On-Disk Structure (ODS) version.
- Since:
- 6
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()intmajor()intminor()static OdsVersionnone()static OdsVersionof(int major, int minor) Returns a - possibly cached - instance with the specified major and minor version.toString()withMajor(int major) Returns a - possibly cached - instance with the specified major version and the minor version of this instance.withMinor(int minor) Returns a - possibly cached - instance with the major version of this instance and the specified minor version.
-
Method Details
-
of
Returns a - possibly cached - instance with the specified major and minor version.- Parameters:
major- ODS major versionminor- ODS minor version- Returns:
- ODS version instance
-
none
- Returns:
- an ODS version object with major
0and minor0
-
major
public int major()- Returns:
- ODS major version
-
minor
public int minor()- Returns:
- ODS minor version
-
withMajor
Returns a - possibly cached - instance with the specified major version and the minor version of this instance.- Parameters:
major- ODS major version- Returns:
- instance with value of parameter
majorandminor()of this instance
-
withMinor
Returns a - possibly cached - instance with the major version of this instance and the specified minor version.- Parameters:
minor- ODS minor version- Returns:
- instance with
major()of this instance and value of parameterminor
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<OdsVersion>
-