Record Class SortSetup
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.SortSetup
Result of sort transformation: the new iterator setup and the sort index.
When sortIndex >= 0, stages before sortIndex were consumed by the sort drain loop
and must not be processed again by the normal while loop pipeline.
-
Constructor Summary
ConstructorsConstructorDescriptionSortSetup(IteratorSetup iteratorSetup, int sortIndex) Creates an instance of aSortSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theiteratorSetuprecord component.intReturns the value of thesortIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SortSetup
SortSetup(IteratorSetup iteratorSetup, int sortIndex) Creates an instance of aSortSetuprecord class.- Parameters:
iteratorSetup- the value for theiteratorSetuprecord componentsortIndex- the value for thesortIndexrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
iteratorSetup
Returns the value of theiteratorSetuprecord component.- Returns:
- the value of the
iteratorSetuprecord component
-
sortIndex
public int sortIndex()Returns the value of thesortIndexrecord component.- Returns:
- the value of the
sortIndexrecord component
-