Record Class DataClumpTracker.ParamPair
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.DataClumpTracker.ParamPair
- All Implemented Interfaces:
Comparable<DataClumpTracker.ParamPair>
- Enclosing class:
DataClumpTracker
static record DataClumpTracker.ParamPair(String typeFqn, String paramName)
extends Record
implements Comparable<DataClumpTracker.ParamPair>
An immutable (type, name) pair from a parameter, ordered for deterministic comparison.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparamNamerecord component.final StringtoString()Returns a string representation of this record class.typeFqn()Returns the value of thetypeFqnrecord component.
-
Constructor Details
-
ParamPair
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<DataClumpTracker.ParamPair>
-
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). -
typeFqn
Returns the value of thetypeFqnrecord component.- Returns:
- the value of the
typeFqnrecord component
-
paramName
Returns the value of theparamNamerecord component.- Returns:
- the value of the
paramNamerecord component
-