Record Class GenericInGenericData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.GenericInGenericData
- Record Components:
parent- - This is the outermost generic typedependent- - This is the generic type that is directly contained within the parent.
public record GenericInGenericData(PossibleGenericSymbol parent, PossibleGenericSymbol dependent)
extends Record
Used to model the scenario where a generic type has another dependent generic type used within it.
Note that the dependent may or may not require the same conceptual type arguments as the parent.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericInGenericData(PossibleGenericSymbol parent, PossibleGenericSymbol dependent) Creates an instance of aGenericInGenericDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
parent
-
dependent
-