java.lang.Object
java.lang.Record
org.aya.core.serde.SerPat.Ctor
- All Implemented Interfaces:
Serializable,SerPat
- Enclosing interface:
SerPat
public static record SerPat.Ctor(boolean explicit, SerDef.QName name, @NotNull kala.collection.immutable.ImmutableSeq<SerPat> params, SerTerm.Data 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
ConstructorsConstructorDescriptionCtor(boolean explicit, SerDef.QName name, @NotNull kala.collection.immutable.ImmutableSeq<SerPat> params, SerTerm.Data ty) Creates an instance of aCtorrecord 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.name()Returns the value of thenamerecord component.@NotNull kala.collection.immutable.ImmutableSeq<SerPat>params()Returns the value of theparamsrecord component.final StringtoString()Returns a string representation of this record class.ty()Returns the value of thetyrecord component.
-
Constructor Details
-
Ctor
public Ctor(boolean explicit, @NotNull SerDef.QName name, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<SerPat> params, @NotNull SerTerm.Data ty) Creates an instance of aCtorrecord class.- Parameters:
explicit- the value for theexplicitrecord componentname- the value for thenamerecord componentparams- the value for theparamsrecord 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
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
ty
Returns the value of thetyrecord component.- Returns:
- the value of the
tyrecord component
-