Record Class ChainedComparisonParams
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.ChainedComparisonParams
- Record Components:
firstComparison- First comparison to evaluate (e.g., direction check)secondComparison- Second comparison to evaluate (e.g., loop condition)
public record ChainedComparisonParams(ComparisonParams firstComparison, ComparisonParams secondComparison)
extends Record
Parameters for chained comparison evaluation.
Encapsulates two comparison operations that are evaluated sequentially, typically used for direction detection in polymorphic for-range loops.
-
Constructor Summary
ConstructorsConstructorDescriptionChainedComparisonParams(ComparisonParams firstComparison, ComparisonParams secondComparison) Creates an instance of aChainedComparisonParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstComparisonrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesecondComparisonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChainedComparisonParams
Creates an instance of aChainedComparisonParamsrecord class.- Parameters:
firstComparison- the value for thefirstComparisonrecord componentsecondComparison- the value for thesecondComparisonrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
firstComparison
Returns the value of thefirstComparisonrecord component.- Returns:
- the value of the
firstComparisonrecord component
-
secondComparison
Returns the value of thesecondComparisonrecord component.- Returns:
- the value of the
secondComparisonrecord component
-