java.lang.Object
java.lang.Record
org.aya.core.serde.SerPat.Bind
- All Implemented Interfaces:
Serializable,SerPat
- Enclosing interface:
SerPat
public static record SerPat.Bind(boolean explicit, SerTerm.SimpVar var, @NotNull SerTerm ty)
extends Record
implements SerPat
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.serde.SerPat
SerPat.Absurd, SerPat.Bind, SerPat.Clause, SerPat.Ctor, SerPat.ShapedInt, SerPat.Tuple -
Constructor Summary
ConstructorsConstructorDescriptionBind(boolean explicit, SerTerm.SimpVar var, @NotNull SerTerm ty) Creates an instance of aBindrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Patde(@NotNull SerTerm.DeState state) final 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.final StringtoString()Returns a string representation of this record class.@NotNull SerTermty()Returns the value of thetyrecord component.var()Returns the value of thevarrecord component.
-
Constructor Details
-
Bind
Creates an instance of aBindrecord class.- Parameters:
explicit- the value for theexplicitrecord componentvar- the value for thevarrecord componentty- the value for thetyrecord component
-
-
Method Details
-
de
-
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 '=='. -
explicit
public boolean explicit()Returns the value of theexplicitrecord component.- Returns:
- the value of the
explicitrecord component
-
var
Returns the value of thevarrecord component.- Returns:
- the value of the
varrecord component
-
ty
Returns the value of thetyrecord component.- Returns:
- the value of the
tyrecord component
-