Package org.ek9lang.compiler.support
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
ConstructorDescriptionGenericInGenericData
(PossibleGenericSymbol parent, PossibleGenericSymbol dependent) Creates an instance of aGenericInGenericData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependent
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.parent()
Returns the value of theparent
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-
dependent
Returns the value of thedependent
record component.- Returns:
- the value of the
dependent
record component
-