Record Class ContractVersion
java.lang.Object
java.lang.Record
com.blueriq.component.api.externalflow.data.contract.ContractVersion
- Record Components:
major- major versionminor- minor version
- All Implemented Interfaces:
Comparable<ContractVersion>
public record ContractVersion(int major, int minor)
extends Record
implements Comparable<ContractVersion>
Contract version for the external flow data models. Contract versions are used to determine which contract mapping
should be used when serializing and deserializing external flow data models.
-
Constructor Summary
ConstructorsConstructorDescriptionContractVersion(int major, int minor) Creates an instance of aContractVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ContractVersion otherCv) Compare ContractVersions on major and then minor versionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmajor()Returns the value of themajorrecord component.intminor()Returns the value of theminorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContractVersion
-
-
Method Details
-
compareTo
Compare ContractVersions on major and then minor version- Specified by:
compareToin interfaceComparable<ContractVersion>- Parameters:
otherCv- the ContractVersion to be compared.- Returns:
- see
Comparable.compareTo(Object)
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
major
-
minor
-