java.lang.Object
java.lang.Record
org.aya.core.term.LamTerm.Param
- All Implemented Interfaces:
UntypedParam
- Enclosing class:
LamTerm
public static record LamTerm.Param(@NotNull LocalVar ref, boolean explicit)
extends Record
implements UntypedParam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexplicit()Returns the value of theexplicitrecord component.final inthashCode()Returns a hash code value for this object.@NotNull LocalVarref()Returns the value of therefrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.core.UntypedParam
renameVar, toArg, toTerm
-
Constructor Details
-
Param
Creates an instance of aParamrecord class.- Parameters:
ref- the value for therefrecord componentexplicit- the value for theexplicitrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
ref
Returns the value of therefrecord component.- Specified by:
refin interfaceUntypedParam- Returns:
- the value of the
refrecord component
-
explicit
public boolean explicit()Returns the value of theexplicitrecord component.- Specified by:
explicitin interfaceUntypedParam- Returns:
- the value of the
explicitrecord component
-