Record Class DatabricksVersion
java.lang.Object
java.lang.Record
io.trino.tests.product.deltalake.util.DatabricksVersion
- All Implemented Interfaces:
Comparable<DatabricksVersion>
public record DatabricksVersion(int majorVersion, int minorVersion)
extends Record
implements Comparable<DatabricksVersion>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DatabricksVersionstatic final DatabricksVersionstatic final DatabricksVersionstatic final DatabricksVersion -
Constructor Summary
ConstructorsConstructorDescriptionDatabricksVersion(int majorVersion, int minorVersion) Creates an instance of aDatabricksVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DatabricksVersion other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisAtLeast(DatabricksVersion version) booleanisOlderThan(DatabricksVersion version) intReturns the value of themajorVersionrecord component.intReturns the value of theminorVersionrecord component.static DatabricksVersionfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
DATABRICKS_122_RUNTIME_VERSION
-
DATABRICKS_113_RUNTIME_VERSION
-
DATABRICKS_104_RUNTIME_VERSION
-
DATABRICKS_91_RUNTIME_VERSION
-
-
Constructor Details
-
DatabricksVersion
public DatabricksVersion(int majorVersion, int minorVersion) Creates an instance of aDatabricksVersionrecord class.- Parameters:
majorVersion- the value for themajorVersionrecord componentminorVersion- the value for theminorVersionrecord component
-
-
Method Details
-
isAtLeast
-
isOlderThan
-
compareTo
- Specified by:
compareToin interfaceComparable<DatabricksVersion>
-
parse
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
majorVersion
public int majorVersion()Returns the value of themajorVersionrecord component.- Returns:
- the value of the
majorVersionrecord component
-
minorVersion
public int minorVersion()Returns the value of theminorVersionrecord component.- Returns:
- the value of the
minorVersionrecord component
-