Package org.ek9lang.compiler.support
Record Class PositionalConceptualLookupMapping.Mapping
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.PositionalConceptualLookupMapping.Mapping
- Enclosing class:
PositionalConceptualLookupMapping
public static record PositionalConceptualLookupMapping.Mapping(List<ISymbol> typeArguments, List<ISymbol> typeParameters)
extends Record
Just holds a simple set of lists with the appropriate type arguments and their corresponding parameterizing
parameters. This just enables a single index based lookup based on positions in Lists.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Returns the value of thetypeArguments
record component.Returns the value of thetypeParameters
record component.
-
Constructor Details
-
Mapping
Creates an instance of aMapping
record class.- Parameters:
typeArguments
- the value for thetypeArguments
record componenttypeParameters
- the value for thetypeParameters
record component
-
-
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)
. -
typeArguments
Returns the value of thetypeArguments
record component.- Returns:
- the value of the
typeArguments
record component
-
typeParameters
Returns the value of thetypeParameters
record component.- Returns:
- the value of the
typeParameters
record component
-