Record Class SamenessAbove.Found
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.sameness.SamenessAbove.Found
- Enclosing class:
SamenessAbove
One sameness found above a type: the level of the walk it was found at (a parameterised type stays itself, so
its display name can be rendered) and the operator, read from that level's declaring type.
-
Constructor Summary
ConstructorsConstructorDescriptionFound(IAggregateSymbol level, MethodSymbol operator) Creates an instance of aFoundrecord 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.level()Returns the value of thelevelrecord component.operator()Returns the value of theoperatorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Found
Found(IAggregateSymbol level, MethodSymbol operator) Creates an instance of aFoundrecord class.- Parameters:
level- the value for thelevelrecord componentoperator- the value for theoperatorrecord 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). -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-