Record Class OrderingBodyHere.Body
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase3.OrderingBodyHere.Body
- Enclosing class:
OrderingBodyHere
The body, and whether it is its generic's own hand-written
<=>.-
Constructor Summary
ConstructorsConstructorDescriptionBody(IScopedSymbol symbol, boolean ownComparison) Creates an instance of aBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.(package private) ConceptualAccess.OrderingStephandsOn(IScopedSymbol into, ISymbol intoParameter) The body hands the values on tointo, where they are values ofintoParameter.final inthashCode()Returns a hash code value for this object.(package private) ConceptualAccess.OrderingSteporders()The body orders the values itself.booleanReturns the value of theownComparisonrecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Body
Body(IScopedSymbol symbol, boolean ownComparison) Creates an instance of aBodyrecord class.- Parameters:
symbol- the value for thesymbolrecord componentownComparison- the value for theownComparisonrecord component
-
-
Method Details
-
orders
ConceptualAccess.OrderingStep orders()The body orders the values itself. -
handsOn
The body hands the values on tointo, where they are values ofintoParameter. -
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. -
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
ownComparison
public boolean ownComparison()Returns the value of theownComparisonrecord component.- Returns:
- the value of the
ownComparisonrecord component
-