java.lang.Object
java.lang.Record
org.aya.core.serde.SerPat.Tuple
- All Implemented Interfaces:
Serializable,SerPat
- Enclosing interface:
SerPat
public static record SerPat.Tuple(boolean explicit, @NotNull kala.collection.immutable.ImmutableSeq<SerPat> pats)
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
Constructors -
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.@NotNull kala.collection.immutable.ImmutableSeq<SerPat>pats()Returns the value of thepatsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tuple
public Tuple(boolean explicit, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<SerPat> pats) Creates an instance of aTuplerecord class.- Parameters:
explicit- the value for theexplicitrecord componentpats- the value for thepatsrecord 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
-
pats
Returns the value of thepatsrecord component.- Returns:
- the value of the
patsrecord component
-